#include <base_types_array.hh>

Public Types | |
| typedef T | Type |
Public Member Functions | |
| Array (void) | |
| Array (uint cnt) | |
| ~Array () | |
| T * | PTR (void) const |
| const T * | CONST_PTR (void) const |
| T & | operator[] (uint i) |
| const T & | operator[] (uint i) const |
| void | push_back (const T &v) |
| bool | empty (void) const |
| void | clear (void) |
| uint | size (void) const |
| void | resize (uint cnt) |
| void | reserve (uint cnt) |
Private Attributes | |
| vector< T > | mVector |
Static Private Attributes | |
| static const uint | MAX_ELEMS = 20 * (1000000) |
Friends | |
| bool | operator< (const Array &a, const Array &b) |
/// /// Thin wrapper over STL vector which does bounds checking. /// PTR() returns raw C array. /// If size of array is pre-determined, for speed, /// construct and write elements using Array(uint) and operator[] resp. /// Rules for writing elements: /// - Must use push_back() if constructed by Array(void). /// - Writing elements by operator[] allowed if constructed by Array(uint). /// /// Array currently doesn't but could allocate an extra element to tolerate off-by-one errors. /// ///
| typedef T base::Array< T >::Type |
| base::Array< T >::Array | ( | void | ) | [inline] |
| base::Array< T >::Array | ( | uint | cnt | ) | [inline, explicit] |
| base::Array< T >::~Array | ( | ) | [inline] |
| T* base::Array< T >::PTR | ( | void | ) | const [inline] |
| const T* base::Array< T >::CONST_PTR | ( | void | ) | const [inline] |
| T& base::Array< T >::operator[] | ( | uint | i | ) | [inline] |
| const T& base::Array< T >::operator[] | ( | uint | i | ) | const [inline] |
| void base::Array< T >::push_back | ( | const T & | v | ) | [inline] |
| bool base::Array< T >::empty | ( | void | ) | const [inline] |
| void base::Array< T >::clear | ( | void | ) | [inline] |
| uint base::Array< T >::size | ( | void | ) | const [inline] |
| void base::Array< T >::resize | ( | uint | cnt | ) | [inline] |
| void base::Array< T >::reserve | ( | uint | cnt | ) | [inline] |
vector<T> base::Array< T >::mVector [private] |
const uint base::Array< T >::MAX_ELEMS = 20 * (1000000) [static, private] |
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:20 2007