![]() |
globjects
1.1.0.2f0c753c8647
Strict OpenGL objects wrapper.
|
Superclass for all classes that use reference counting in globjects. More...
#include <globjects/include/globjects/base/Referenced.h>
Public Member Functions | |
Referenced () | |
void | ref () const |
void | unref () const |
int | refCounter () const |
![]() | |
HeapOnly () | |
void | destroy () const |
Protected Member Functions | |
virtual | ~Referenced () |
![]() | |
virtual | ~HeapOnly () |
Superclass for all classes that use reference counting in globjects.
The ref counter can be increased and decreased using ref() and unref(). If the ref counter decreases to zero, the referenced objects is deleted.
Referenced objects should not be copy constructed or assigned.
globjects::Referenced::Referenced | ( | ) |
|
protectedvirtual |
void globjects::Referenced::ref | ( | ) | const |
void globjects::Referenced::unref | ( | ) | const |
int globjects::Referenced::refCounter | ( | ) | const |