#include <memory.hpp>
Public Member Functions | |
auto_ptr (T *t) | |
~auto_ptr () | |
T * | get () const |
T * | release () |
T * | operator-> () const |
void | reset (T *x) |
T & | operator * () const |
Throws if !this->get(). |
This type is a subset of std::auto_ptr, the main difference being that it's not copyable.
Note that this type is functionally very different from s11n::cleanup_ptr, which specifically handles the details of cleaning up Serializables, whereas this type simply uses delete to destroy its contents.
Definition at line 297 of file memory.hpp.
s11n::Detail::auto_ptr< T >::auto_ptr | ( | T * | t | ) | [inline] |
Definition at line 298 of file memory.hpp.
s11n::Detail::auto_ptr< T >::~auto_ptr | ( | ) | [inline] |
Definition at line 299 of file memory.hpp.
T* s11n::Detail::auto_ptr< T >::get | ( | ) | const [inline] |
T* s11n::Detail::auto_ptr< T >::release | ( | ) | [inline] |
Definition at line 301 of file memory.hpp.
Referenced by s11n::serialize_to_subnode_unary_f< NodeType, BinaryFunctorT >::operator()(), and s11n::serialize_to_subnode_f< BinaryFunctorT >::operator()().
T* s11n::Detail::auto_ptr< T >::operator-> | ( | ) | const [inline] |
Definition at line 302 of file memory.hpp.
void s11n::Detail::auto_ptr< T >::reset | ( | T * | x | ) | [inline] |
Definition at line 303 of file memory.hpp.
T& s11n::Detail::auto_ptr< T >::operator * | ( | ) | const [inline] |