#include <pointer.hpp>
Definition at line 172 of file pointer.hpp.
Public Member Functions | |
void | attach () |
bool | detach () |
Returns true if the object deleted itself. | |
const int & | get_ref_count () const |
shared_pointer_impl (T *data) | |
virtual | ~shared_pointer_impl () |
Private Attributes | |
T * | data |
shared_pointer_impl | ( | T * | data | ) | [inline] |
Definition at line 345 of file pointer.hpp.
~shared_pointer_impl | ( | ) | [inline, virtual] |
void attach | ( | ) | [inherited] |
Definition at line 53 of file shared.cpp.
References shared_object::ref_count.
Referenced by font::font(), material::material(), model_part::model_part(), string::operator=(), string::string(), texture::texture(), and string::unshare().
bool detach | ( | ) | [inherited] |
Returns true if the object deleted itself.
Definition at line 59 of file shared.cpp.
References shared_object::ref_count.
Referenced by string::make_null(), string::unshare(), font::~font(), and texture::~texture().
const int& get_ref_count | ( | ) | const [inline, inherited] |
T* data [private] |
Definition at line 175 of file pointer.hpp.
Referenced by shared_pointer_impl::~shared_pointer_impl().