NodeEnumerator Class Reference

DllEntry / xfrefutil

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

NodeEnumerator Class Reference

#include <xrefutil.h>

Inheritance diagram for NodeEnumerator:

NodeFlagger UnflaggedNodeDeleter UnflaggedNodeNamer XRefObjFinder List of all members.

Public Methods

 NodeEnumerator ()
virtual ~NodeEnumerator ()
void reset ()
virtual bool Proc (INode * pNode) = 0
virtual void Enumerate (INode * pNode, bool procfirst = false)

Protected Attributes

bool m_continue

Constructor & Destructor Documentation

NodeEnumerator::NodeEnumerator ( ) [inline]
 

Definition at line 124 of file xrefutil.h.

00124                      : m_continue(true) {}

NodeEnumerator::~NodeEnumerator ( ) [inline, virtual]
 

Definition at line 125 of file xrefutil.h.

00125                               {}


Member Function Documentation

void NodeEnumerator::Enumerate ( INode * pNode,
bool procfirst = false ) [inline, virtual]
 

Definition at line 131 of file xrefutil.h.

Referenced by Xrefutil::AddNewXrefObject(), and Xrefutil::ExportXrefObjects().

00132     {
00133         if (procfirst) {
00134             m_continue = Proc(pNode);
00135         }
00136         for (int c = 0; c < pNode->NumberOfChildren(); c++) {
00137             if (m_continue) Enumerate(pNode->GetChildNode(c));
00138         }
00139         if (!procfirst && m_continue) {
00140             m_continue = Proc(pNode);
00141         }                   
00142     }

virtual bool NodeEnumerator::Proc ( INode * pNode ) [pure virtual]
 

Reimplemented in UnflaggedNodeNamer, UnflaggedNodeDeleter, XRefObjFinder, and NodeFlagger.

Referenced by Enumerate().

void NodeEnumerator::reset ( ) [inline]
 

Definition at line 127 of file xrefutil.h.

00127                  { m_continue = true; }


Member Data Documentation

bool NodeEnumerator::m_continue [protected]
 

Definition at line 120 of file xrefutil.h.


The documentation for this class was generated from the following file:
Generated at Mon Nov 6 14:11:59 2000 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000