Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

ph::common::object_visitor Class Reference

#include <visitable_object.hpp>


Detailed Description

Abstract class representing a visitor for objects.

This class represents the "Visitor" in the "Visitor" pattern.

Definition at line 35 of file visitable_object.hpp.

Public Member Functions

virtual ~object_visitor ()
virtual bool recurse ()
virtual bool visit (object_base *obj)=0
virtual bool visit_composite (object_base *obj)=0


Constructor & Destructor Documentation

virtual ph::common::object_visitor::~object_visitor  )  [inline, virtual]
 

Definition at line 43 of file visitable_object.hpp.


Member Function Documentation

virtual bool ph::common::object_visitor::recurse  )  [inline, virtual]
 

Return true if the visitor should recurse through composite objects. it is up to the individual composite objects to implement this correctly.

Definition at line 45 of file visitable_object.hpp.

Referenced by ph::reflect::vector_object_helper::helper_accept(), and ph::reflect::ref_object_helper::helper_accept().

virtual bool ph::common::object_visitor::visit object_base obj  )  [pure virtual]
 

Visit an object.

Referenced by ph::reflect::vector_object_helper::helper_accept(), and ph::reflect::ref_object_helper::helper_accept().

virtual bool ph::common::object_visitor::visit_composite object_base obj  )  [pure virtual]
 

Visit a composite object.

Referenced by ph::reflect::vector_object_helper::helper_accept(), and ph::reflect::ref_object_helper::helper_accept().


The documentation for this class was generated from the following file:
Generated on Wed Apr 5 22:03:34 2006 for cppxmlobj by  doxygen 1.4.3