Allocated vector list of a specified type. More...
#include <vector.h>
Public Member Functions | |
const T & | at (int index) |
Get object pointer of specified type from fixed vector. | |
T * | begin (void) |
Get the first typed object pointer contained in the fixed vector. | |
T * | end (void) |
Get the last typed object pointer contained in the fixed vector. | |
T * | operator() (vectorsize_t position) |
Retrieve a typed member of the fixed vector directly. | |
Vector & | operator+ (Vector &vector) |
Concatenate fixed typed vector in an expression. | |
T & | operator[] (int index) |
Return a pointer from the vector by array reference. | |
vectorbuf () | |
Construct fixed sized vector object in heap or stack. |
Allocated vector list of a specified type.
This analogous to the stringbuf class and allows one to create a vector with it's member list as a single object that can live in the heap or that can be created at once and used as a auto variable.
Definition at line 697 of file vector.h.
const T& ucommon::vectorbuf< T, S >::at | ( | int | index | ) | [inline] |
T* ucommon::vectorbuf< T, S >::begin | ( | void | ) | [inline] |
T* ucommon::vectorbuf< T, S >::end | ( | void | ) | [inline] |
T* ucommon::vectorbuf< T, S >::operator() | ( | vectorsize_t | position | ) | [inline] |
Retrieve a typed member of the fixed vector directly.
position | to retrieve object from. |
Reimplemented from ucommon::Vector.
Vector& ucommon::vectorbuf< T, S >::operator+ | ( | Vector & | vector | ) | [inline] |
T& ucommon::vectorbuf< T, S >::operator[] | ( | int | index | ) | [inline] |
Return a pointer from the vector by array reference.
index | of vector member pointer to return. |
Reimplemented from ucommon::Vector.