Collection#include </home/jenkins/.jenkins/ubuntu-remote-queue/jenkins-BuildZorbaUbuntu-462/source/zorba/swig/Collection.h> A Collection is a persistent sequence of node items. Instances of this class can be used to modify or retrieve the contents of a collection.The variable aNodes passed to any of the insert functions is evaluated as though it were an enclosed expression in an element constructor. The result of this step is a sequence of nodes to be inserted into the collection.Private Attributes
Public Functions
Private AttributestheCollectionzorba::Collection_t theCollection
Public FunctionsCollection Collection(const Collection &aMgr)
Collection Collection(zorba::Collection *aMgr)
contentsItemSequence contents() This function returns the sequence of nodes of the collection.
ReturnsThe sequence contained in the given collection.deleteNodeFirstvoid deleteNodeFirst() This function deletes the first node from a collection.
Parameters
deleteNodeLastvoid deleteNodeLast() This function deletes the last node from a collection.
Parameters
deleteNodesvoid deleteNodes(const ItemSequence &aNodes) This function deletes zero of more nodes from a collection.
Parameters
Parameters
deleteNodesFirstvoid deleteNodesFirst(unsigned long aNumNodes) This function deletes the n first nodes from a collection.
Parameters
deleteNodesLastvoid deleteNodesLast(unsigned long aNumNodes) This function deletes the n last nodes from a collection.
Parameters
getTypeSequenceType getType() Retrieves the sequence type for this (static declared) collection.
Returnsthe sequence type for the said collection, or 0 if this collection is not statically declared.ReturnsisStatic()indexOflong long indexOf(const Item &aNode) This function returns the index of the given node in the collection.
Parameters
ReturnsReturns the position of the given node in the collection.Parameters
insertNodesAftervoid insertNodesAfter(const Item &aTarget, const ItemSequence &aNodes) This function inserts copies of the given nodes into a collection at the position directly following the given target node.
Parameters
Parameters
insertNodesBeforevoid insertNodesBefore(const Item &aTarget, const ItemSequence &aNodes) This function inserts copies of the given nodes into a collection at the position directly preceding the given target node.
Parameters
Parameters
insertNodesFirstvoid insertNodesFirst(const ItemSequence &aNodes) This function inserts copies of the given nodes at the beginning of the collection.
Parameters
insertNodesLastvoid insertNodesLast(const ItemSequence &aNodes) This function inserts copies of the given nodes at the end of the collection.
Parameters
isStaticbool isStatic() The function checks if this collection has been statically declared.
Returnstrue if the collection is a static collection, false otherwise. |