#include <OpenGUI_RefObject.h>
Public Member Functions | |
| RefObjHandle (RefObject *counted_object=0) | |
| Create a handle from an existing object pointer, or empty. | |
| RefObjHandle (const RefObjHandle< OBJECT > &other_handle) | |
| Create a handle from another handle. | |
| RefObjHandle< OBJECT > & | operator= (const RefObjHandle< OBJECT > &right) |
| Assignment operator. | |
| unsigned int | getHandleCount () |
| Return the total number of handles to the object, yourself included. | |
| OBJECT & | operator * () const |
| The usual *Handle resolving. | |
| OBJECT * | operator-> () const |
| The usual Handle->something resolving. | |
| operator bool () const | |
| This makes "if( Handle )" work just like "if( !Handle.isNull() )". | |
| bool | operator== (int p) const |
| This allows us to use "if( Handle == NULL )" and "if( Handle == 0 )". | |
| bool | operator!= (int p) const |
| used for "if( Handle != NULL )" and "if(Handle != 0 )" | |
| bool | operator== (const OBJECT *p) const |
| Used for "if( Handle == normal_pointer )". | |
| bool | operator== (const RefObjHandle &r) const |
| Used for "if( Handle == Handle )". | |
| bool | operator!= (const RefObjHandle &r) const |
| Used for "if( Handle != Handle )". | |
| bool | operator!= (const OBJECT *p) const |
| Used for "if( Handle != normal_pointer )". | |
| bool | isNull () const |
| Handle.isNull() returns true if RefPtr carries no pointer. | |
| OBJECT * | get () const |
| Returns the carried pointer in raw form. | |
|
||||||||||
|
Create a handle from an existing object pointer, or empty.
|
|
||||||||||
|
Create a handle from another handle.
|
|
|||||||||
|
Returns the carried pointer in raw form.
|
|
|||||||||
|
Return the total number of handles to the object, yourself included.
|
|
|||||||||
|
Handle.isNull() returns true if RefPtr carries no pointer.
|
|
|||||||||
|
The usual *Handle resolving.
|
|
|||||||||
|
This makes "if( Handle )" work just like "if( !Handle.isNull() )".
|
|
||||||||||
|
Used for "if( Handle != normal_pointer )".
|
|
||||||||||
|
Used for "if( Handle != Handle )".
|
|
||||||||||
|
used for "if( Handle != NULL )" and "if(Handle != 0 )"
|
|
|||||||||
|
The usual Handle->something resolving.
|
|
||||||||||
|
Assignment operator.
|
|
||||||||||
|
Used for "if( Handle == Handle )".
|
|
||||||||||
|
Used for "if( Handle == normal_pointer )".
|
|
||||||||||
|
This allows us to use "if( Handle == NULL )" and "if( Handle == 0 )".
|