#include <HierarchyVisitorHelper.h>
|
| enum | { kDefaultIID = IID_IVISITORHELPER } |
| |
Base implementation for IVisitorHelper classes that use IHierarchy for finding children.
| virtual bool16 HierarchyVisitorHelperImpl::Accept | ( | IBaseVisitor * | theVisitor | ) | |
| virtual |
Override this to call the proper routine in theVisitor for the node.
- Parameters
| theVisitor | IN a pointer to the IBaseVisitor that knows how to pass control off to specific visitor routines, depending on the type of node found |
- Returns
- bool16 whether to stop traversal yet or not; kTrue means stop immediately, kFalse means continue
Implements IVisitorHelper.
| virtual int32 HierarchyVisitorHelperImpl::CollectChildren | ( | IBaseHandler * | theHandler | ) | |
| virtual |
Determine how many children this node has, and if necessary, do any allocation or caching needed when individual children are accessed via QueryChild.
- Parameters
| theHandler | IN pointer to the IBaseHandler in use for this visitation. |
- Returns
- bool16 the number of children found for this item.
Implements IVisitorHelper.
| virtual IVisitorHelper* HierarchyVisitorHelperImpl::QueryChild | ( | int32 | index | ) | |
| virtual |
Query for a specific child of this node.
- Parameters
| index | IN the index of the node desired (zero-based) |
- Returns
- an IVisitorHelper pointer to the child node
Implements IVisitorHelper.