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_type & | operator= (const my_type &other) |
template<typename _VectorType> my_type & | operator= (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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|