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