StdVectorPtr< T > Class Template Reference

#include <StdVectorPtr.h>

List of all members.

Public Member Functions

 StdVectorPtr (size_t capacity=0)
 ~StdVectorPtr ()
void resize (size_t newsize)
size_t size () const
size_t capacity () const
void clear ()
void push_back (std::auto_ptr< T > ptr)
T *const & operator[] (size_t n) const
T *const & at (size_t n) const
void reset (size_t n, T *ptr)
bool empty () const

Protected Attributes

std::vector< T * > data

Private Member Functions

 StdVectorPtr (const StdVectorPtr &)
StdVectorPtroperator= (const StdVectorPtr &)


Detailed Description

template<class T>
class StdVectorPtr< T >

Definition at line 29 of file StdVectorPtr.h.


Constructor & Destructor Documentation

template<class T>
StdVectorPtr< T >::StdVectorPtr ( size_t  capacity = 0  )  [inline]

Definition at line 32 of file StdVectorPtr.h.

template<class T>
StdVectorPtr< T >::~StdVectorPtr (  )  [inline]

Definition at line 33 of file StdVectorPtr.h.

References StdVectorPtr< T >::clear().

template<class T>
StdVectorPtr< T >::StdVectorPtr ( const StdVectorPtr< T > &   )  [private]


Member Function Documentation

template<class T>
void StdVectorPtr< T >::resize ( size_t  newsize  )  [inline]

Definition at line 35 of file StdVectorPtr.h.

References StdVectorPtr< T >::data, and StdVectorPtr< T >::size().

template<class T>
size_t StdVectorPtr< T >::size (  )  const [inline]

Definition at line 49 of file StdVectorPtr.h.

References StdVectorPtr< T >::data.

Referenced by StdVectorPtr< T >::clear(), and StdVectorPtr< T >::resize().

template<class T>
size_t StdVectorPtr< T >::capacity (  )  const [inline]

Definition at line 50 of file StdVectorPtr.h.

References StdVectorPtr< T >::data.

template<class T>
void StdVectorPtr< T >::clear (  )  [inline]

Definition at line 51 of file StdVectorPtr.h.

References StdVectorPtr< T >::data, and StdVectorPtr< T >::size().

Referenced by StdVectorPtr< T >::~StdVectorPtr().

template<class T>
void StdVectorPtr< T >::push_back ( std::auto_ptr< T >  ptr  )  [inline]

Definition at line 64 of file StdVectorPtr.h.

References StdVectorPtr< T >::data.

template<class T>
T* const& StdVectorPtr< T >::operator[] ( size_t  n  )  const [inline]

Definition at line 70 of file StdVectorPtr.h.

References StdVectorPtr< T >::data.

template<class T>
T* const& StdVectorPtr< T >::at ( size_t  n  )  const [inline]

Definition at line 71 of file StdVectorPtr.h.

References StdVectorPtr< T >::data.

template<class T>
void StdVectorPtr< T >::reset ( size_t  n,
T *  ptr 
) [inline]

Definition at line 73 of file StdVectorPtr.h.

References StdVectorPtr< T >::data.

template<class T>
bool StdVectorPtr< T >::empty (  )  const [inline]

Definition at line 74 of file StdVectorPtr.h.

References StdVectorPtr< T >::data.

template<class T>
StdVectorPtr& StdVectorPtr< T >::operator= ( const StdVectorPtr< T > &   )  [private]


Member Data Documentation

template<class T>
std::vector<T*> StdVectorPtr< T >::data [protected]

Definition at line 77 of file StdVectorPtr.h.

Referenced by StdVectorPtr< T >::at(), StdVectorPtr< T >::capacity(), StdVectorPtr< T >::clear(), StdVectorPtr< T >::empty(), StdVectorPtr< T >::operator[](), StdVectorPtr< T >::push_back(), StdVectorPtr< T >::reset(), StdVectorPtr< T >::resize(), and StdVectorPtr< T >::size().


The documentation for this class was generated from the following file:
Generated on Mon Feb 16 15:15:07 2009 for Scorched3D by  doxygen 1.5.3