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