OpenLexocad
28.0
|
#include <Handle.h>
Public Member Functions | |
Reference () | |
Reference (T *p) | |
Reference (const Reference< T > &p) | |
~Reference () | |
Reference< T > & | operator= (T *p) |
Reference< T > & | operator= (const Reference< T > &p) |
T & | operator* () const |
T * | operator-> () const |
operator T* () const | |
bool | operator< (const Reference< T > &p) const |
bool | operator== (const Reference< T > &p) const |
bool | operator!= (const Reference< T > &p) const |
bool | isValid (void) const |
Test if it handles something. More... | |
bool | isNull (void) const |
Test if it does not handle anything. More... | |
int | getRefCount (void) const |
Get number of references on the object, including this one. More... | |
Reference class Implementation of the reference counting pattern. Only able to instantiate with a class inheriting Base::Handled.
|
inline |
Pointer and default constructor
|
inline |
|
inline |
Copy constructor
|
inline |
destructor Release the reference counter which causes, in case of the last one, the referenced object to be destructed!
|
inline |
Get number of references on the object, including this one.
|
inline |
Test if it does not handle anything.
|
inline |
Test if it handles something.
|
inline |
|
inline |
|
inline |
Dereference operator
|
inline |
Dereference operator
|
inline |
Lower operator, needed for sorting in maps and sets
|
inline |
Assign operator from a handle
|
inline |
Assign operator from a pointer
|
inline |
Equal operator