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

ph::common::ref_object_helper Class Reference

#include <ref_object.hpp>

Inheritance diagram for ph::common::ref_object_helper:

persist_test::c_ref reflect_test::c_ref

Detailed Description

Helper for an object which refers to another.

Definition at line 20 of file common/ref_object.hpp.

Public Member Functions

 ref_object_helper ()
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

object_base_obj


Constructor & Destructor Documentation

ph::common::ref_object_helper::ref_object_helper  )  [inline]
 

Definition at line 26 of file common/ref_object.hpp.


Member Function Documentation

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

Delete the object attached. Only deletes if the object is actually owned by this.

Definition at line 30 of file common/ref_object.hpp.

References _obj, ph::common::object_base::deletable(), ph::common::deletable_object_base::delete_object(), and helper_remove().

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

bool ph::common::ref_object_helper::helper_add object_base parent,
object_base obj,
bool  own,
bool  owned
[inline]
 

Add a new object to the reference.

Definition at line 49 of file common/ref_object.hpp.

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

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

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

remove an object from the reference.

Definition at line 65 of file common/ref_object.hpp.

References _obj.

Referenced by helper_delete_object(), persist_test::c_ref::remove(), and reflect_test::c_ref::remove().

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

References are singleton objects.

Definition at line 76 of file common/ref_object.hpp.

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

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

Return the number of objects in the reference.

Definition at line 84 of file common/ref_object.hpp.

References _obj.

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


Field Documentation

object_base* ph::common::ref_object_helper::_obj [protected]
 

Definition at line 93 of file common/ref_object.hpp.

Referenced by reflect_test::c_ref::accept(), helper_add(), helper_count(), helper_delete_object(), helper_remove(), and persist_test::c_ref::obj().


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