xoreos
0.0.5
|
A scoped plain pointer, allowing pointer-y access and normal deletion. More...
#include <scopedptr.h>
Inherits Common::ScopedPtrBase< T, Deallocator >.
Public Member Functions | |
ScopedPtr (typename ScopedPtrBase< T, Deallocator >::PointerType o=0) | |
ScopedPtrBase< T, Deallocator >::ReferenceType | operator* () const |
ScopedPtrBase< T, Deallocator >::PointerType | operator-> () const |
Public Member Functions inherited from Common::ScopedPtrBase< T, Deallocator > | |
ScopedPtrBase (PointerType o=0) | |
XOREOS_EXPLICIT_OPERATOR_CONV | operator bool () const |
Implicit conversion operator to bool for convenience, to make checks like "if (scopedPtr) ..." possible. More... | |
~ScopedPtrBase () | |
void | reset (PointerType o=0) |
Resets the pointer with the new value. More... | |
PointerType | get () const |
Returns the plain pointer value. More... | |
PointerType | release () |
Returns the plain pointer value and releases ScopedPtr. More... | |
void | swap (ScopedPtrBase< T, Deallocator > &right) |
Swap the managed pointers of two ScopedPtrs of the same type. More... | |
Additional Inherited Members | |
Public Types inherited from Common::ScopedPtrBase< T, Deallocator > | |
typedef T | ValueType |
typedef T * | PointerType |
typedef T & | ReferenceType |
A scoped plain pointer, allowing pointer-y access and normal deletion.
Definition at line 120 of file scopedptr.h.
|
inlineexplicit |
Definition at line 122 of file scopedptr.h.
|
inline |
Definition at line 126 of file scopedptr.h.
|
inline |
Definition at line 130 of file scopedptr.h.