zorba::ItemSequence

#include <zorba/item_sequence.h>

Inherited from: zorba::SmartObject

ItemSequence represents an ordered sequence of items. The sequence may contain any mix of atomic items, function items, nodes, JSON objects, or JSON arrays.

Public Functions

void

addReference() const

void

free()

Iterator_t

getIterator()=0

Create an iterator over the items of this sequence.

long

getRefCount() const

void

removeReference()

~ItemSequence()

Destructor.

Protected Attributes

unsigned int

theRefCount

Public Functions

addReference

void addReference() const

free

void free()

getIterator

Iterator_t getIterator()=0

Create an iterator over the items of this sequence.

The life time of the iterator shouldnot exceed the life time of this item sequence.

Returns

an iterator over the items

Parameters

Throws zerr::ZAPI0039 if the implementation of the associated ItemSequence does not allow more than one iterator to be created.

getRefCount

long getRefCount() const

removeReference

void removeReference()

~ItemSequence

 ~ItemSequence()

Destructor.

Protected Attributes

theRefCount

unsigned int theRefCount