A callback class for enumerating dependents.
This class is a callback object for the ReferenceMaker::DoEnumDependentsImpl() and ReferenceMaker::DoEnumDependents() methods. The proc() method is called by the system.
#include <ref.h>
Public Member Functions |
|
virtual int | proc (ReferenceMaker *rmaker)=0 |
This is the method called by system from
ReferenceTarget::DoEnumDependentsImpl().
|
|
CoreExport bool | CheckIfAndSetAsVisited (ReferenceMaker *rmaker) |
This method sets and checks whether a
ReferenceMaker was visited. |
|
Protected Member Functions |
|
CoreExport | DependentEnumProc () |
virtual CoreExport | ~DependentEnumProc () |
DependentEnumProc (const DependentEnumProc &) | |
DependentEnumProc & | operator= (const DependentEnumProc &rhs) |
Friends |
|
class | ReferenceTarget |
class | ReferenceMaker |
CoreExport DependentEnumProc | ( | ) | [protected] |
virtual CoreExport ~DependentEnumProc | ( | ) | [protected, virtual] |
DependentEnumProc | ( | const DependentEnumProc & | ) | [protected] |
DependentEnumProc& operator= | ( | const DependentEnumProc & | rhs | ) | [protected] |
virtual int proc | ( | ReferenceMaker * | rmaker | ) | [pure virtual] |
This is the method called by system from ReferenceTarget::DoEnumDependentsImpl().
rmaker | - A pointer to the reference maker |
Implemented in FindMAXWrapperEnum, and FindCustAttribOwnerDEP.
CoreExport bool CheckIfAndSetAsVisited | ( | ReferenceMaker * | rmaker | ) |
This method sets and checks whether a ReferenceMaker was visited.
This method is used to check whether a ReferenceMaker was previously visited by this callback object, and registers it as having been visited if not. This is used to only call the proc on each ReferenceMaker once. If you override ReferenceTarget::EnumDependentsImp, you should use this method to process your instance only if it was not previously visited.
rmaker | - A pointer to the reference maker |
friend class ReferenceTarget
[friend] |
friend class ReferenceMaker
[friend] |