22 while (!it.isDone()) {
24 const INode* child = it.getCurrent();
34 while (!it.isDone()) {
36 const INode* child = it.getCurrent();
Defines class IterationStrategy and children.
Defines classes IteratorState, IteratorMemento and NodeIterator.
Visitor interface to visit ISample objects.
void setDepth(int depth)
Sets depth of the visitor in the composite hierarchy.
Base class for tree-like structures containing parameterized objects.
virtual void accept(INodeVisitor *visitor) const =0
Calls the INodeVisitor's visit method.
Iterator through INode tree of objects.