#include <Composite.h>
Public Methods | |
| virtual bool | match (N &node)=0 |
| The search condition. | |
| void | apply (N &node) |
| Search for a matching node. | |
| simdata::Ref< N > | getNode () const |
| Get the node that match the search condition, if any. | |
The visitor traverses the graph until the match() method returns true. Implement this method in a derived class to specify the search condition. Traversal stops as soon as a match is found. After traversal the getNode() method can be used to retrieve the matching node (if any).
|
||||||||||
|
Search for a matching node. Don't call this directly; use node->accept(visitor); |
|
|||||||||
|
Get the node that match the search condition, if any.
|
|
||||||||||
|
The search condition. Implement this condition in derived classes to deterimine which node is found. |
|
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage. Generated on Tue Oct 14 12:06:41 2003, using Doxygen 1.2.18. |