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

ph::common::vector_object_helper Class Reference

#include <vector_object.hpp>

Inheritance diagram for ph::common::vector_object_helper:

persist_test::c_vector reflect_test::c_vector

Detailed Description

Helper for an object which contains a vector of other objects.

Definition at line 24 of file common/vector_object.hpp.

Public Member Functions

void helper_delete_object (bool owned)
bool helper_add (object_base *parent, object_base *obj, bool own, bool owned)
bool helper_remove (object_base *obj)
bool helper_singleton () const
bool helper_count () const

Protected Attributes

std::vector< object_base * > _vector

Member Function Documentation

void ph::common::vector_object_helper::helper_delete_object bool  owned  )  [inline]

Delete the objects attached. Only deletes if the objects are actually owned by this.

Definition at line 31 of file common/vector_object.hpp.

References _vector.

Referenced by persist_test::c_vector::delete_object(), and reflect_test::c_vector::delete_object().

bool ph::common::vector_object_helper::helper_add object_base parent,
object_base obj,
bool  own,
bool  owned

Add a new object to the collection.

Definition at line 44 of file common/vector_object.hpp.

References _vector, ph::common::outerable_object_base::outer(), and ph::common::object_base::outerable().

Referenced by persist_test::c_vector::add(), and reflect_test::c_vector::add().

bool ph::common::vector_object_helper::helper_remove object_base obj  )  [inline]

remove an object from the collection.

Definition at line 59 of file common/vector_object.hpp.

References _vector.

Referenced by persist_test::c_vector::remove(), and reflect_test::c_vector::remove().

bool ph::common::vector_object_helper::helper_singleton  )  const [inline]

Vectors are not singleton objects.

Definition at line 72 of file common/vector_object.hpp.

Referenced by persist_test::c_vector::singleton(), and reflect_test::c_vector::singleton().

bool ph::common::vector_object_helper::helper_count  )  const [inline]

Return the number of objects in the vector.

Definition at line 80 of file common/vector_object.hpp.

References _vector.

Referenced by persist_test::c_vector::count(), and reflect_test::c_vector::count().

Field Documentation

std::vector<object_base *> ph::common::vector_object_helper::_vector [protected]

Definition at line 89 of file common/vector_object.hpp.

Referenced by reflect_test::c_vector::accept(), helper_add(), helper_count(), helper_delete_object(), helper_remove(), and persist_test::c_vector::vector().

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