GClasses
GClasses::VectorOfPointersHolder< T > Class Template Reference

Detailed Description

template<class T>
class GClasses::VectorOfPointersHolder< T >

Deletes all of the pointers in a vector when this object goes out of scope.

#include <GHolders.h>

Public Member Functions

 VectorOfPointersHolder (std::vector< T * > &vec)
 
 ~VectorOfPointersHolder ()
 Deletes all of the pointers in the vector. More...
 

Protected Attributes

std::vector< T * > & m_vec
 

Constructor & Destructor Documentation

template<class T >
GClasses::VectorOfPointersHolder< T >::VectorOfPointersHolder ( std::vector< T * > &  vec)
inline
template<class T >
GClasses::VectorOfPointersHolder< T >::~VectorOfPointersHolder ( )
inline

Deletes all of the pointers in the vector.

Member Data Documentation

template<class T >
std::vector<T*>& GClasses::VectorOfPointersHolder< T >::m_vec
protected