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

ph::common::const_member_visitor Class Reference

#include <visitable_object.hpp>

Inheritance diagram for ph::common::const_member_visitor:

dump_member_visitor ph::common::get_member_value_visitor

Detailed Description

Abstract class representing a visitor for members, where the visitor does not modify the objects or members that it visits.

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

Definition at line 97 of file visitable_object.hpp.

Public Member Functions

virtual ~const_member_visitor ()
virtual bool visit (const object_base *obj, const std::string &name, const member_base *member)=0

Constructor & Destructor Documentation

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

Definition at line 106 of file visitable_object.hpp.

Member Function Documentation

virtual bool ph::common::const_member_visitor::visit const object_base obj,
const std::string &  name,
const member_base member
[pure virtual]

Visit the member passing the name of it, a member base class which can be used to convert to/from a string, and the actual parent object.

Implemented in ph::common::get_member_value_visitor, and dump_member_visitor.

Referenced by reflect_test::c_base::accept(), and reflect_test::base::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