The Object class provides some helpers for dealing with O<T> objects. More...
#include <Object.h>
Static Public Member Functions | |
| template<typename T > | |
| static O< T > | fromThis (T *t) |
| fromThis() allows an object t to safely generate additional O<T> instances that all manipulate the lifetime of t (through its internal reference counter). More... | |
The Object class provides some helpers for dealing with O<T> objects.
|
inlinestatic |
fromThis() allows an object t to safely generate additional O<T> instances that all manipulate the lifetime of t (through its internal reference counter).
void someMethod()
{
Glympse::GSomeEventSink sink = ...;
sink->addListener(Glympse::Object::fromThis(this));
}
Glympse::GLong number = new Glympse::Long(10LL);
| Pointer | to the object of class that implements ICommon. |
1.8.4