eng::VisitorCloner Class Reference

Visitor to re-clone every Node clone (for a new clone of a Graph). More...

#include <eng_graph_visitors.hh>

Inheritance diagram for eng::VisitorCloner:

eng::Visitor

List of all members.

Public Member Functions

 VisitorCloner (Graph &graph, const Graph &parentGraph)
 ~VisitorCloner ()
void VisitAny (Node &node)


Detailed Description

Visitor to re-clone every Node clone (for a new clone of a Graph).

When Graph::Clone() is called to make a copy of a Graph, VisitorCloner finds every clone of a Node (a private copy) of the parent Graph, and in turn, makes another private copy for the new child Graph.


Constructor & Destructor Documentation

eng::VisitorCloner::VisitorCloner ( Graph graph,
const Graph parentGraph 
) [inline]

eng::VisitorCloner::~VisitorCloner (  )  [inline]


Member Function Documentation

void eng::VisitorCloner::VisitAny ( Node node  ) 

If this node of the parent Graph is a clone, re-clone it in the child Graph.


The documentation for this class was generated from the following files: Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:22 2007