CXXR (C++ R)
Public Member Functions
CXXR::GCNode::const_visitor Struct Reference

Abstract base class for the Visitor design pattern. More...

#include <GCNode.hpp>

Inherited by CXXR::Environment::LeakMonitor, and CXXR::GCNode::Marker.

List of all members.

Public Member Functions

virtual void operator() (const GCNode *node)=0
 Perform visit.

Detailed Description

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.


Member Function Documentation

virtual void CXXR::GCNode::const_visitor::operator() ( const GCNode node)
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().

Parameters:
nodeNode to be visited.

The documentation for this struct was generated from the following file: