#include <c_vector.hpp>
Inheritance diagram for persist_test::c_vector:
Definition at line 19 of file persist/test/c_vector.hpp.
Public Member Functions | |
c_vector (ph::common::object_base *outer, const std::string &name) | |
const std::vector< ph::common::object_base * > * | vector () const |
virtual void | delete_object () |
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 |
|
Definition at line 27 of file persist/test/c_vector.hpp. |
|
Definition at line 31 of file persist/test/c_vector.hpp. References ph::common::vector_object_helper::_vector. |
|
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 35 of file persist/test/c_vector.hpp. References ph::common::vector_object_helper::helper_delete_object(), and ph::common::composite_object_base::owned(). |
|
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 39 of file persist/test/c_vector.hpp. References ph::common::vector_object_helper::helper_add(), and ph::common::composite_object_base::owned(). |
|
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 41 of file persist/test/c_vector.hpp. References ph::common::vector_object_helper::helper_remove(). |
|
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 43 of file persist/test/c_vector.hpp. References ph::common::vector_object_helper::helper_singleton(). |
|
Return the number of objects contained in this composite object. Implements ph::common::composite_object_base. Definition at line 45 of file persist/test/c_vector.hpp. References ph::common::vector_object_helper::helper_count(). |