TIBCO Adapter SDK C++ Reference
Up | Next
MTreeEnumerator::next
MTreeEnumerator
Retrieve the next element in this tree.

• If there is no next element, for example because this is the end of the tree, this method returns NULL.

• If the next element is an MNode, this method returns a pointer to that MNode.

• If the next element is an MTree, this method returns a pointer to that MTree as an MNode.

To find out whether an MNode or an MTree was returned, call MNode::downCast() or MTree::downCast().

Note
This method is not recursive. If your current node is an MTree, the next node is not the first node of that tree but instead the next node. You have to explicitly iterate through the child MTree if you need recursion.

Remarks There is no guaranteed order of items in a tree.

Declaration
const MNode* next(void);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.