CACAO
Public Types | Public Member Functions | Private Attributes
DynamicVector< T > Class Template Reference

Public Types

typedef std::vector< T >::iterator iterator
 
typedef std::vector< T >
::const_iterator 
const_iterator
 

Public Member Functions

iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
T & operator[] (size_t index)
 Returns the element at the specified index. More...
 
const T & operator[] (size_t index) const
 
size_t size () const
 
void resize (size_t size)
 

Private Attributes

std::vector< T > _vec
 

Detailed Description

template<class T>
class DynamicVector< T >

Definition at line 31 of file DynamicVector.hpp.

Member Typedef Documentation

template<class T>
typedef std::vector<T>::const_iterator DynamicVector< T >::const_iterator

Definition at line 38 of file DynamicVector.hpp.

template<class T>
typedef std::vector<T>::iterator DynamicVector< T >::iterator

Definition at line 37 of file DynamicVector.hpp.

Member Function Documentation

template<class T >
DynamicVector< T >::iterator DynamicVector< T >::begin ( )
inline

Definition at line 64 of file DynamicVector.hpp.

template<class T >
DynamicVector< T >::const_iterator DynamicVector< T >::begin ( ) const
inline

Definition at line 70 of file DynamicVector.hpp.

template<class T >
DynamicVector< T >::iterator DynamicVector< T >::end ( )
inline

Definition at line 76 of file DynamicVector.hpp.

template<class T >
DynamicVector< T >::const_iterator DynamicVector< T >::end ( ) const
inline

Definition at line 82 of file DynamicVector.hpp.

template<class T >
T & DynamicVector< T >::operator[] ( size_t  index)
inline

Returns the element at the specified index.

Resizes the vector if the index does not exist yet.

Definition at line 88 of file DynamicVector.hpp.

template<class T >
const T & DynamicVector< T >::operator[] ( size_t  index) const
inline

Definition at line 96 of file DynamicVector.hpp.

template<class T >
void DynamicVector< T >::resize ( size_t  size)
inline

Definition at line 109 of file DynamicVector.hpp.

template<class T >
size_t DynamicVector< T >::size ( ) const
inline

Definition at line 103 of file DynamicVector.hpp.

Field Documentation

template<class T>
std::vector<T> DynamicVector< T >::_vec
private

Definition at line 33 of file DynamicVector.hpp.


The documentation for this class was generated from the following file: