16 #ifndef API_COLLECTION_H
17 #define API_COLLECTION_H
32 zorba::Collection_t theCollection;
36 Collection(zorba::Collection* aMgr) : theCollection(aMgr) {}
TypeIdentifier getType()
Retrieves the sequence type for this (static declared) collection.
void deleteNodes(const ItemSequence &aNodes)
This function deletes zero of more nodes from a collection.
This interface represents an instance of the XQuery 1.0 and XPath 2.0 Data Model (XDM).
void deleteNodeLast()
This function deletes the last node from a collection.
void deleteNodesLast(unsigned long aNumNodes)
This function deletes the n last nodes from a collection.
void insertNodesLast(const ItemSequence &aNodes)
This function inserts copies of the given nodes at the end of the collection.
ItemSequence contents()
This function returns the sequence of nodes of the collection.
A Collection is a persistent sequence of node items.
bool isStatic()
The function checks if this collection has been statically declared.
Collection(zorba::Collection *aMgr)
Item getName()
Get the name of the collection.
The Zorba Item interface.
void insertNodesAfter(const Item &aTarget, const ItemSequence &aNodes)
This function inserts copies of the given nodes into a collection at the position directly following ...
void insertNodesBefore(const Item &aTarget, const ItemSequence &aNodes)
This function inserts copies of the given nodes into a collection at the position directly preceding ...
long long indexOf(const Item &aNode)
This function returns the index of the given node in the collection.
void deleteNodeFirst()
This function deletes the first node from a collection.
void insertNodesFirst(const ItemSequence &aNodes)
This function inserts copies of the given nodes at the beginning of the collection.
void deleteNodesFirst(unsigned long aNumNodes)
This function deletes the n first nodes from a collection.
Collection(const Collection &aMgr)