#include <baseref.h>
UniqueRefHandler can be used as template argument for BaseRef to obtain a reference to an object which exclusively owns the object and, thus, deletes it on destruction or reset. The easiest way to make use of UniqueRefHandler is to use the UniqueRef template which is a BaseRef with UniqueRefHandler argument.
静态公共成员函数 |
|
template<typename T > | |
static void | InitialReference (const T *o) |
template<typename T > | |
static void | AddReference (const T *o) |
template<typename T > | |
static void | RemoveReference (const T *o) |
template<typename T > | |
static void | AddWeakReference (const T *o, WeakRefBase &weakRef) |
template<typename T > | |
static void | ChangeTarget (T *&o, T *n) |
template<typename T > | |
static void | ChangeTarget (T *&o, ResultPtr < T > newTarget) |
template<typename T > | |
static void | MoveTarget (T *&srcReference, T *&dstReference) |
template<typename R > | |
static ResultRef < typename R::ReferencedType > | MakeWritable (R &ref, Bool resetOnError) |
静态公共属性 |
|
static const VALUEKIND | KIND |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|