OpendTect
6.6
|
Public Types | |
typedef T *(* | PointerCreator) () |
Public Member Functions | |
T * | createIfNull (PointerCreator=createSingleObject< T >) |
void | erase () |
bool | operator! () const |
T * | release () |
Returns pointer. I won't take care of it any longer. More... | |
T * | set (T *p, bool doerase=true) |
Returns old pointer if not erased. More... | |
bool | setIfNull (T *p) |
bool | setIfNull (T *p, bool takeover) |
Protected Types | |
typedef void(* | PtrFunc) (T *) |
Protected Member Functions | |
PtrManBase (PtrFunc setfunc, PtrFunc deletor, T *) | |
virtual | ~PtrManBase () |
Protected Attributes | |
PtrFunc | deletefunc_ |
Threads::AtomicPointer< T > | ptr_ |
PtrFunc | setfunc_ |
Base class for smart pointers. Don't use directly, use PtrMan, ArrPtrMan or RefMan instead.
<>
typedef T*(* PtrManBase< T >::PointerCreator) () |
|
protected |
|
inlineprotected |
|
inlineprotectedvirtual |
|
inline |
If null, PointerCrator will be called to create new object.
|
inline |
|
inline |
|
inline |
Returns pointer. I won't take care of it any longer.
|
inline |
Returns old pointer if not erased.
|
inline |
|
inline |
If takeover==true, pointer will be deleted if object was not set.
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022