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

reflect_test::c_vector Class Reference

#include <c_vector.hpp>

Inheritance diagram for reflect_test::c_vector:

reflect_test::c_base ph::common::vector_object_helper ph::reflect::vector_object_helper ph::common::composite_object_helper ph::common::composite_object_base ph::common::comparable_object_base ph::common::outerable_helper ph::common::outerable_object_base ph::common::deletable_object_base ph::common::visitable_object_base ph::common::object_base

Detailed Description

Definition at line 30 of file reflect/test/c_vector.hpp.

Public Member Functions

 c_vector (ph::common::object_base *outer, const std::string &name)
virtual bool accept (ph::common::member_visitor *v)
virtual bool accept (ph::common::const_member_visitor *v) const
virtual bool accept (ph::common::object_visitor *v)
virtual bool accept (ph::common::const_object_visitor *v) const
virtual bool add (ph::common::object_base *obj, bool own)
virtual bool remove (ph::common::object_base *obj)
virtual bool singleton () const
virtual int count () const
virtual void delete_object ()


Constructor & Destructor Documentation

reflect_test::c_vector::c_vector ph::common::object_base outer,
const std::string &  name
[inline]
 

Definition at line 39 of file reflect/test/c_vector.hpp.


Member Function Documentation

virtual bool reflect_test::c_vector::accept ph::common::member_visitor v  )  [inline, virtual]
 

Visit each of the members in the object.

Reimplemented from reflect_test::c_base.

Definition at line 44 of file reflect/test/c_vector.hpp.

References reflect_test::c_base::accept().

Referenced by reflect_test::root::accept(), and reflect_test::foo::accept().

virtual bool reflect_test::c_vector::accept ph::common::const_member_visitor v  )  const [inline, virtual]
 

Visit each of the members in the object. But they won't be modified.

Reimplemented from reflect_test::c_base.

Definition at line 50 of file reflect/test/c_vector.hpp.

References reflect_test::c_base::accept().

virtual bool reflect_test::c_vector::accept ph::common::object_visitor v  )  [inline, virtual]
 

Visit each of the objects within this object.

Reimplemented from reflect_test::c_base.

Definition at line 56 of file reflect/test/c_vector.hpp.

References ph::common::vector_object_helper::_vector, reflect_test::c_base::accept(), and ph::reflect::vector_object_helper::helper_accept().

virtual bool reflect_test::c_vector::accept ph::common::const_object_visitor v  )  const [inline, virtual]
 

Visit each of the objects within this object. But they won't be modified.

Reimplemented from reflect_test::c_base.

Definition at line 62 of file reflect/test/c_vector.hpp.

References ph::common::vector_object_helper::_vector, reflect_test::c_base::accept(), and ph::reflect::vector_object_helper::helper_accept().

virtual bool reflect_test::c_vector::add ph::common::object_base obj,
bool  own
[inline, virtual]
 

Add a new object to the composite object. The client passes in their understanding of the ownership policy to make sure that it fits in with the composites ownership. If they don't match, then the object won't be added, and the client can take appropriate action.

Implements ph::common::composite_object_base.

Definition at line 70 of file reflect/test/c_vector.hpp.

References ph::common::vector_object_helper::helper_add(), and ph::common::composite_object_base::owned().

Referenced by reflect_test::foo::addbars(), and reflect_test::root::addfoosandbars().

virtual bool reflect_test::c_vector::remove ph::common::object_base obj  )  [inline, virtual]
 

Remove and object from the composite. Objects which are removed are not subject to the ownership policy of the composite, since they are simply forgotten by it.

Implements ph::common::composite_object_base.

Definition at line 72 of file reflect/test/c_vector.hpp.

References ph::common::vector_object_helper::helper_remove().

virtual bool reflect_test::c_vector::singleton  )  const [inline, virtual]
 

If the composite can only hold one value (so a second add() will fail for example), then this returns true. It is used when reflecting through composites to prevent subscripts being required.

Implements ph::common::composite_object_base.

Definition at line 74 of file reflect/test/c_vector.hpp.

References ph::common::vector_object_helper::helper_singleton().

virtual int reflect_test::c_vector::count  )  const [inline, virtual]
 

Return the number of objects contained in this composite object.

Implements ph::common::composite_object_base.

Definition at line 76 of file reflect/test/c_vector.hpp.

References ph::common::vector_object_helper::helper_count().

virtual void reflect_test::c_vector::delete_object  )  [inline, virtual]
 

Delete the object. The default actually deletes it, so don't forget to call this guy.

Reimplemented from ph::common::deletable_object_base.

Definition at line 80 of file reflect/test/c_vector.hpp.

References ph::common::vector_object_helper::helper_delete_object(), and ph::common::composite_object_base::owned().


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