#include <ref_object.hpp>
Inheritance diagram for ph::common::ref_object_helper:
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 |
|
Definition at line 26 of file common/ref_object.hpp. |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |