globjects
1.1.0.2f0c753c8647
Strict OpenGL objects wrapper.
|
The ref_ptr class provides the interface for a reference pointer. More...
#include <globjects/include/globjects/base/LogMessageBuilder.h>
Public Member Functions | |
ref_ptr () | |
ref_ptr (T *referenced) | |
ref_ptr (const ref_ptr &reference) | |
ref_ptr (ref_ptr &&reference) | |
~ref_ptr () | |
ref_ptr & | operator= (T *referenced) |
ref_ptr & | operator= (const ref_ptr &reference) |
T * | get () const |
T & | operator* () const |
T * | operator-> () const |
operator T * () const | |
bool | operator< (const ref_ptr &reference) const |
bool | operator> (const ref_ptr &reference) const |
bool | operator== (const ref_ptr &reference) const |
bool | operator!= (const ref_ptr &reference) const |
bool | operator< (T *pointer) const |
bool | operator> (T *pointer) const |
bool | operator== (T *pointer) const |
bool | operator!= (T *pointer) const |
Protected Member Functions | |
void | increaseRef () |
void | decreaseRef () |
Protected Attributes | |
const Referenced * | m_referenced |
The ref_ptr class provides the interface for a reference pointer.
It is meant to be used together with subclasses of Referenced* The usage of a ref_ptr is quite the same as the work with normal pointers. This ref_ptr will be automatically cast to a normal pointer automatically so it can be used with the globjects API without any inconvenience.
Example code:
globjects::ref_ptr< T >::ref_ptr | ( | ) |
globjects::ref_ptr< T >::ref_ptr | ( | T * | referenced | ) |
globjects::ref_ptr< T >::ref_ptr | ( | const ref_ptr< T > & | reference | ) |
globjects::ref_ptr< T >::ref_ptr | ( | ref_ptr< T > && | reference | ) |
globjects::ref_ptr< T >::~ref_ptr | ( | ) |
ref_ptr& globjects::ref_ptr< T >::operator= | ( | T * | referenced | ) |
ref_ptr& globjects::ref_ptr< T >::operator= | ( | const ref_ptr< T > & | reference | ) |
T* globjects::ref_ptr< T >::get | ( | ) | const |
T& globjects::ref_ptr< T >::operator* | ( | ) | const |
T* globjects::ref_ptr< T >::operator-> | ( | ) | const |
globjects::ref_ptr< T >::operator T * | ( | ) | const |
bool globjects::ref_ptr< T >::operator< | ( | const ref_ptr< T > & | reference | ) | const |
bool globjects::ref_ptr< T >::operator> | ( | const ref_ptr< T > & | reference | ) | const |
bool globjects::ref_ptr< T >::operator== | ( | const ref_ptr< T > & | reference | ) | const |
bool globjects::ref_ptr< T >::operator!= | ( | const ref_ptr< T > & | reference | ) | const |
bool globjects::ref_ptr< T >::operator< | ( | T * | pointer | ) | const |
bool globjects::ref_ptr< T >::operator> | ( | T * | pointer | ) | const |
bool globjects::ref_ptr< T >::operator== | ( | T * | pointer | ) | const |
bool globjects::ref_ptr< T >::operator!= | ( | T * | pointer | ) | const |
|
protected |
|
protected |
|
mutableprotected |