openikev2::AutoVector< T > Class Template Reference

This class wraps an STL vector of pointers, deleting all the internal objects in it destructor. More...

#include <autovector.h>

List of all members.

Public Member Functions

 AutoVector () throw ()
 Creates a new empty AutoVector.
 AutoVector (collection v) throw ()
 Creates a new AutoVector initializated with the indicated vector of pointers.
 AutoVector (AutoVector< T > &other) throw ()
 
Parameters:
other 

AutoVector< T > & operator= (AutoVector< T > &other) throw ()
collection & get ()
const collection & get () const
collection release ()
void reset (collection v)
collection * operator-> () throw ()
void clear ()
const collection * operator-> () const throw ()
element_type & operator[] (int i)
 AutoVector (AutoVectorRef< T > __ref) throw ()
AutoVectoroperator= (AutoVectorRef< T > __ref) throw ()
template<typename _Tp1>
 operator AutoVectorRef () throw ()
template<typename _Tp1>
 operator AutoVector () throw ()
void deleteAll ()

Protected Attributes

collection internal_vector
 Internal vector.

Private Types

typedef T * element_type
typedef vector< element_type > collection


Detailed Description

template<typename T>
class openikev2::AutoVector< T >

This class wraps an STL vector of pointers, deleting all the internal objects in it destructor.

Author:
Alejandro Perez Mendez, Pedro J. Fernandez Ruiz <alejandro_perez@dif.um.es, pedroj.fernandez@dif.um.es>


Constructor & Destructor Documentation

template<typename T>
openikev2::AutoVector< T >::AutoVector ( collection  v  )  throw () [inline, explicit]

Creates a new AutoVector initializated with the indicated vector of pointers.

Parameters:
v Vector of pointers

template<typename T>
openikev2::AutoVector< T >::AutoVector ( AutoVector< T > &  other  )  throw () [inline]

Parameters:
other 

Returns:


Generated on Fri Jul 27 11:04:49 2007 for libopenikev2 by  doxygen 1.5.1