cartobase
5.1.2
|
Holds a temporary object pointer in a scope. More...
#include <>>
Classes | |
class | InsipidProxyPointer |
Public Types | |
typedef T | element_type |
Public Member Functions | |
scoped_ptr (T *p=0) | |
template<class U > | |
scoped_ptr (std::auto_ptr< U > r) | |
~scoped_ptr () | |
void | reset (T *p=0) |
T & | operator* () const |
T * | operator-> () const |
T * | get () const |
operator InsipidProxyPointer * () const | |
void | swap (scoped_ptr &r) |
Holds a temporary object pointer in a scope.
Even less capable than std::auto_ptr. For allocating on the heap something that must be destructed when exiting the current scope. Just like a variable allocated on the stack...
Definition at line 69 of file scopedptr.h.
typedef T carto::scoped_ptr< T >::element_type |
Definition at line 73 of file scopedptr.h.
|
inlineexplicit |
Definition at line 84 of file scopedptr.h.
|
inline |
Definition at line 98 of file scopedptr.h.
|
inline |
Definition at line 103 of file scopedptr.h.
|
inline |
Definition at line 127 of file scopedptr.h.
|
inline |
Definition at line 133 of file scopedptr.h.
|
inline |
Definition at line 117 of file scopedptr.h.
|
inline |
Definition at line 122 of file scopedptr.h.
|
inline |
Definition at line 108 of file scopedptr.h.
|
inline |
Definition at line 139 of file scopedptr.h.
Referenced by carto::swap().