CXXR (C++ R)
|
Abstract base class for the Visitor design pattern. More...
#include <GCNode.hpp>
Inherited by CXXR::Environment::LeakMonitor, and CXXR::GCNode::Marker.
Public Member Functions | |
virtual void | operator() (const GCNode *node)=0 |
Perform visit. |
Abstract base class for the Visitor design pattern.
See Gamma et al 'Design Patterns' Ch. 5 for a description of the Visitor design pattern.
The const in the name refers to the fact that the visitor does not modify the node it visits (or modifies only mutable fields). There is currently no provision for the visitor object itself to be be considered const during a visit.
|
pure virtual |
Perform visit.
In the light of what the visitor discovers, it may elect also to visit the referents of node, by calling visitReferents().
node | Node to be visited. |