B2BITS FIX Antenna HFT  1.0.13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
Utils::ArrayAutoPtr< T > Class Template Reference

std::auto_ptr analogue to operate with dynamic arrays. More...

#include <ArrayAutoPtr.h>

Public Types

typedef T const * const_iterator
 
typedef T * iterator
 

Public Member Functions

 ArrayAutoPtr ()
 Constructor. More...
 
 ArrayAutoPtr (T *ptr)
 Constructor. More...
 
 ArrayAutoPtr (ArrayAutoPtr< T > const &other)
 Copy ctor. More...
 
const_iterator begin () const
 
iterator begin ()
 
T * get () const
 Returns a pointer. More...
 
T & operator[] (ptrdiff_t idx)
 Indexer. More...
 
T * release ()
 release underlying pointer and return it More...
 
void reset (T *ptr)
 delete object pointed by underlying pointer and set it to new value More...
 
void swap (ArrayAutoPtr< T > &rhv)
 
 ~ArrayAutoPtr ()
 Destructor. More...
 

Detailed Description

template<typename T>
class Utils::ArrayAutoPtr< T >

std::auto_ptr analogue to operate with dynamic arrays.

Member Typedef Documentation

template<typename T>
typedef T const* Utils::ArrayAutoPtr< T >::const_iterator
template<typename T>
typedef T* Utils::ArrayAutoPtr< T >::iterator

Constructor & Destructor Documentation

template<typename T>
Utils::ArrayAutoPtr< T >::ArrayAutoPtr ( )
inline

Constructor.

template<typename T>
Utils::ArrayAutoPtr< T >::ArrayAutoPtr ( T *  ptr)
inlineexplicit

Constructor.

template<typename T>
Utils::ArrayAutoPtr< T >::ArrayAutoPtr ( ArrayAutoPtr< T > const &  other)
inline

Copy ctor.

template<typename T>
Utils::ArrayAutoPtr< T >::~ArrayAutoPtr ( )
inline

Destructor.

Member Function Documentation

template<typename T>
const_iterator Utils::ArrayAutoPtr< T >::begin ( ) const
inline
template<typename T>
iterator Utils::ArrayAutoPtr< T >::begin ( )
inline
template<typename T>
T* Utils::ArrayAutoPtr< T >::get ( ) const
inline

Returns a pointer.

template<typename T>
T& Utils::ArrayAutoPtr< T >::operator[] ( ptrdiff_t  idx)
inline

Indexer.

template<typename T>
T* Utils::ArrayAutoPtr< T >::release ( )
inline

release underlying pointer and return it

template<typename T>
void Utils::ArrayAutoPtr< T >::reset ( T *  ptr)
inline

delete object pointed by underlying pointer and set it to new value

template<typename T>
void Utils::ArrayAutoPtr< T >::swap ( ArrayAutoPtr< T > &  rhv)
inline