B2BITS FIX Antenna HFT
1.0.15
|
std::auto_ptr analogue with ability to delete object by object's method. More...
#include <AutoPtr2.h>
Public Member Functions | |
AutoPtr2 () throw () | |
Default constructor. More... | |
AutoPtr2 (T *ptr) throw () | |
Constructor. More... | |
AutoPtr2 (AutoPtr2< T, RELEASE_FUNC > const &ptr) throw () | |
Copy constructor. More... | |
T * | get () const throw () |
Returns a pointer. More... | |
T * | get () throw () |
Returns a pointer. More... | |
T & | operator* () throw () |
Overloaded operator*. More... | |
T & | operator* () const throw () |
Overloaded operator*. More... | |
T * | operator-> () throw () |
Overloaded operator->. More... | |
T * | operator-> () const throw () |
Overloaded operator->. More... | |
AutoPtr2 & | operator= (AutoPtr2< T, RELEASE_FUNC > const &ptr) throw () |
Copy operator. More... | |
T * | release () throw () |
Release underlying pointer and return it. More... | |
void | reset (T *ptr=NULL) throw () |
Deletes object by underlying pointer and set it to new value. More... | |
~AutoPtr2 () throw () | |
Destructor. More... | |
std::auto_ptr analogue with ability to delete object by object's method.
|
inline |
Default constructor.
|
inlineexplicit |
Constructor.
ptr | Pointer to the object to be owned. |
|
inline |
Copy constructor.
References Utils::AutoPtr2< T, RELEASE_FUNC >::reset().
|
inline |
Destructor.
|
inline |
Returns a pointer.
|
inline |
Returns a pointer.
|
inline |
Overloaded operator*.
|
inline |
Overloaded operator*.
|
inline |
Overloaded operator->.
|
inline |
Overloaded operator->.
|
inline |
Copy operator.
References Utils::AutoPtr2< T, RELEASE_FUNC >::reset().
|
inline |
Release underlying pointer and return it.
|
inline |
Deletes object by underlying pointer and set it to new value.
ptr | New value to set. |
Referenced by Utils::AutoPtr2< T, RELEASE_FUNC >::AutoPtr2(), and Utils::AutoPtr2< T, RELEASE_FUNC >::operator=().