Template helper emulating C++11 rvalue semantics.
Movable smart pointer mimicking std::unique_ptr.
Public Member Functions | |
UniqueObj (T *obj=NULL) | |
void | reset (T *obj=NULL) |
T * | release () |
UniqueObj (rv< UniqueObj > &moved) | |
UniqueObj & | operator= (rv< UniqueObj > &moved) |
~UniqueObj () | |
T & | operator* () const |
T * | get () const |
operator bool () const | |
operator rv< UniqueObj > & () | |
operator const rv< UniqueObj > & () const | |
|
inlineexplicit |
|
inline |
|
inline |
Definition at line 471 of file Types.h.
References Argus::UniqueObj< T >::reset().
|
inline |
Definition at line 474 of file Types.h.
Referenced by Argus::interface_cast().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 469 of file Types.h.
References Argus::UniqueObj< T >::reset().
|
inline |
|
inline |
Definition at line 463 of file Types.h.
Referenced by Argus::UniqueObj< T >::operator=(), and Argus::UniqueObj< T >::~UniqueObj().