strusBase
0.17
|
Shared pointer template with non thread-safe reference counting. More...
#include <reference.hpp>
Public Member Functions | |
Reference () | |
Default constructor. More... | |
Reference (Object *obj_, bool doThrow=true) | |
Constructor. More... | |
Reference (const Reference &o) | |
Copy constructor. More... | |
~Reference () | |
Destructor. More... | |
Reference & | operator= (const Reference &o) |
Assignment operator. More... | |
void | reset (Object *obj_=0) |
Reinitialize the local value of the reference and dispose the old value if not referenced by others. More... | |
Object * | operator-> () |
Object access operator. More... | |
const Object * | operator-> () const |
Object access operator. More... | |
Object & | operator* () |
Object access operator. More... | |
const Object & | operator* () const |
Object access operator. More... | |
const Object * | get () const |
Object access as function. More... | |
Object * | get () |
Object access as function. More... | |
Object * | release () |
Release object reference and return the pointer to the object (with ownership) if this is possible. More... | |
unsigned int | refcnt () const |
Shared pointer template with non thread-safe reference counting.
|
inline |
Default constructor.
|
inline |
Constructor.
|
inline |
Copy constructor.
|
inline |
Destructor.
|
inline |
Object access as function.
|
inline |
Object access as function.
|
inline |
Object access operator.
|
inline |
Object access operator.
|
inline |
Object access operator.
|
inline |
Object access operator.
|
inline |
Assignment operator.
|
inline |
|
inline |
Release object reference and return the pointer to the object (with ownership) if this is possible.
|
inline |
Reinitialize the local value of the reference and dispose the old value if not referenced by others.