Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

indri::utility::greedy_vector< _Type, _Count > Class Template Reference

List of all members.

Public Types

typedef _Type * iterator
typedef const _Type * const_iterator
typedef _Type & reference
typedef const _Type & const_reference

Public Member Functions

 greedy_vector ()
template<typename _VectorType>  greedy_vector (const _VectorType &other)
 greedy_vector (const my_type &other)
 greedy_vector (size_t storageCount)
 ~greedy_vector ()
size_t size () const
size_t capacity () const
void reserve (size_t space)
void resize (size_t newSize, const _Type &prototype)
void resize (size_t newSize)
void push_back (const _Type &object)
const_iterator begin () const
const_iterator end () const
iterator begin ()
iterator end ()
_Type & operator[] (size_t index)
const _Type & operator[] (size_t index) const
reference at (size_t index)
const_reference at (size_t index) const
reference front ()
reference back ()
const_reference front () const
const_reference back () const
template<typename _Iter> void append (const _Iter otherBegin, const _Iter otherEnd)
template<typename _Iter> void assign (const _Iter otherBegin, const _Iter otherEnd)
my_typeoperator= (const my_type &other)
template<typename _VectorType> my_typeoperator= (const _VectorType &other)
void erase (iterator spot)
void erase (iterator start, iterator finish)
void clear ()

Private Types

typedef greedy_vector< _Type,
_Count > 
my_type

Private Member Functions

void _allocate (size_t newSpace)
void _more_space ()
void _grow (size_t newSize, const _Type &prototype)
template<typename _Iter> void _copy (_Type *start, _Iter other, _Iter otherEnd)
void _shrink (size_t newSize)
void _subscript_gripe ()

Private Attributes

LEMUR_PREALIGN char _stack[sizeof(_Type)*_Count LEMUR_POSTALIGN )
_Type * _array
size_t _size
size_t _space

template<typename _Type, int _Count = 16>
class indri::utility::greedy_vector< _Type, _Count >


Member Typedef Documentation

template<typename _Type, int _Count = 16>
typedef const _Type* indri::utility::greedy_vector< _Type, _Count >::const_iterator
 

template<typename _Type, int _Count = 16>
typedef const _Type& indri::utility::greedy_vector< _Type, _Count >::const_reference
 

template<typename _Type, int _Count = 16>
typedef _Type* indri::utility::greedy_vector< _Type, _Count >::iterator
 

template<typename _Type, int _Count = 16>
typedef greedy_vector<_Type, _Count> indri::utility::greedy_vector< _Type, _Count >::my_type [private]
 

template<typename _Type, int _Count = 16>
typedef _Type& indri::utility::greedy_vector< _Type, _Count >::reference
 


Constructor & Destructor Documentation

template<typename _Type, int _Count = 16>
indri::utility::greedy_vector< _Type, _Count >::greedy_vector  )  [inline]
 

template<typename _Type, int _Count = 16>
template<typename _VectorType>
indri::utility::greedy_vector< _Type, _Count >::greedy_vector const _VectorType &  other  )  [inline]
 

template<typename _Type, int _Count = 16>
indri::utility::greedy_vector< _Type, _Count >::greedy_vector const my_type other  )  [inline]
 

template<typename _Type, int _Count = 16>
indri::utility::greedy_vector< _Type, _Count >::greedy_vector size_t  storageCount  )  [inline, explicit]
 

template<typename _Type, int _Count = 16>
indri::utility::greedy_vector< _Type, _Count >::~greedy_vector  )  [inline]
 


Member Function Documentation

template<typename _Type, int _Count = 16>
void indri::utility::greedy_vector< _Type, _Count >::_allocate size_t  newSpace  )  [inline, private]
 

template<typename _Type, int _Count = 16>
template<typename _Iter>
void indri::utility::greedy_vector< _Type, _Count >::_copy _Type *  start,
_Iter  other,
_Iter  otherEnd
[inline, private]
 

template<typename _Type, int _Count = 16>
void indri::utility::greedy_vector< _Type, _Count >::_grow size_t  newSize,
const _Type &  prototype
[inline, private]
 

template<typename _Type, int _Count = 16>
void indri::utility::greedy_vector< _Type, _Count >::_more_space  )  [inline, private]
 

template<typename _Type, int _Count = 16>
void indri::utility::greedy_vector< _Type, _Count >::_shrink size_t  newSize  )  [inline, private]
 

template<typename _Type, int _Count = 16>
void indri::utility::greedy_vector< _Type, _Count >::_subscript_gripe  )  [inline, private]
 

template<typename _Type, int _Count = 16>
template<typename _Iter>
void indri::utility::greedy_vector< _Type, _Count >::append const _Iter  otherBegin,
const _Iter  otherEnd
[inline]
 

template<typename _Type, int _Count = 16>
template<typename _Iter>
void indri::utility::greedy_vector< _Type, _Count >::assign const _Iter  otherBegin,
const _Iter  otherEnd
[inline]
 

template<typename _Type, int _Count = 16>
const_reference indri::utility::greedy_vector< _Type, _Count >::at size_t  index  )  const [inline]
 

template<typename _Type, int _Count = 16>
reference indri::utility::greedy_vector< _Type, _Count >::at size_t  index  )  [inline]
 

template<typename _Type, int _Count = 16>
const_reference indri::utility::greedy_vector< _Type, _Count >::back  )  const [inline]
 

template<typename _Type, int _Count = 16>
reference indri::utility::greedy_vector< _Type, _Count >::back  )  [inline]
 

template<typename _Type, int _Count = 16>
iterator indri::utility::greedy_vector< _Type, _Count >::begin  )  [inline]
 

template<typename _Type, int _Count = 16>
const_iterator indri::utility::greedy_vector< _Type, _Count >::begin  )  const [inline]
 

template<typename _Type, int _Count = 16>
size_t indri::utility::greedy_vector< _Type, _Count >::capacity  )  const [inline]
 

template<typename _Type, int _Count = 16>
void indri::utility::greedy_vector< _Type, _Count >::clear void   )  [inline]
 

template<typename _Type, int _Count = 16>
iterator indri::utility::greedy_vector< _Type, _Count >::end  )  [inline]
 

template<typename _Type, int _Count = 16>
const_iterator indri::utility::greedy_vector< _Type, _Count >::end  )  const [inline]
 

template<typename _Type, int _Count = 16>
void indri::utility::greedy_vector< _Type, _Count >::erase iterator  start,
iterator  finish
[inline]
 

template<typename _Type, int _Count = 16>
void indri::utility::greedy_vector< _Type, _Count >::erase iterator  spot  )  [inline]
 

template<typename _Type, int _Count = 16>
const_reference indri::utility::greedy_vector< _Type, _Count >::front  )  const [inline]
 

template<typename _Type, int _Count = 16>
reference indri::utility::greedy_vector< _Type, _Count >::front  )  [inline]
 

template<typename _Type, int _Count = 16>
template<typename _VectorType>
my_type& indri::utility::greedy_vector< _Type, _Count >::operator= const _VectorType &  other  )  [inline]
 

template<typename _Type, int _Count = 16>
my_type& indri::utility::greedy_vector< _Type, _Count >::operator= const my_type other  )  [inline]
 

template<typename _Type, int _Count = 16>
const _Type& indri::utility::greedy_vector< _Type, _Count >::operator[] size_t  index  )  const [inline]
 

template<typename _Type, int _Count = 16>
_Type& indri::utility::greedy_vector< _Type, _Count >::operator[] size_t  index  )  [inline]
 

template<typename _Type, int _Count = 16>
void indri::utility::greedy_vector< _Type, _Count >::push_back const _Type &  object  )  [inline]
 

template<typename _Type, int _Count = 16>
void indri::utility::greedy_vector< _Type, _Count >::reserve size_t  space  )  [inline]
 

template<typename _Type, int _Count = 16>
void indri::utility::greedy_vector< _Type, _Count >::resize size_t  newSize  )  [inline]
 

template<typename _Type, int _Count = 16>
void indri::utility::greedy_vector< _Type, _Count >::resize size_t  newSize,
const _Type &  prototype
[inline]
 

template<typename _Type, int _Count = 16>
size_t indri::utility::greedy_vector< _Type, _Count >::size  )  const [inline]
 


Member Data Documentation

template<typename _Type, int _Count = 16>
_Type* indri::utility::greedy_vector< _Type, _Count >::_array [private]
 

template<typename _Type, int _Count = 16>
size_t indri::utility::greedy_vector< _Type, _Count >::_size [private]
 

template<typename _Type, int _Count = 16>
size_t indri::utility::greedy_vector< _Type, _Count >::_space [private]
 

template<typename _Type, int _Count = 16>
LEMUR_PREALIGN char _stack [ sizeof(_Type) * _Count indri::utility::greedy_vector< _Type, _Count >::LEMUR_POSTALIGN) [private]
 


The documentation for this class was generated from the following file:
Generated on Tue Jun 15 11:03:04 2010 for Lemur by doxygen 1.3.4