ucommon
|
A templated vector for a list of a specific Object subtype. More...
#include <vector.h>
Public Member Functions | |
T * | begin (void) |
Get the first typed object pointer contained in the vector. | |
T * | end (void) |
Get the last typed object pointer contained in the vector. | |
T * | get (int index) |
Get object pointer of specified type from vector. | |
T * | operator() (vectorsize_t position) |
Retrieve a typed member of the vector directly. | |
Vector & | operator+ (Vector &vector) |
Concatenate typed vector in an expression. | |
T & | operator[] (int index) |
Return a pointer from the vector by array reference. | |
vectorof () | |
Create an empty vector for specified type. | |
vectorof (vectorsize_t size) | |
Create an empty vector of allocated size for specified type. |
A templated vector for a list of a specific Object subtype.
The templated type must be derived from Object.
ucommon::vectorof< T >::vectorof | ( | vectorsize_t | size | ) | [inline] |
T* ucommon::vectorof< T >::begin | ( | void | ) | [inline] |
Get the first typed object pointer contained in the vector.
Reimplemented from ucommon::Vector.
T* ucommon::vectorof< T >::end | ( | void | ) | [inline] |
Get the last typed object pointer contained in the vector.
Reimplemented from ucommon::Vector.
T* ucommon::vectorof< T >::get | ( | int | index | ) | [inline] |
Get object pointer of specified type from vector.
index | of typed member to return, < 0 to use from end of list. |
Reimplemented from ucommon::Vector.
T* ucommon::vectorof< T >::operator() | ( | vectorsize_t | position | ) | [inline] |
Retrieve a typed member of the vector directly.
position | to retrieve object from. |
Reimplemented from ucommon::Vector.
Vector& ucommon::vectorof< T >::operator+ | ( | Vector & | vector | ) | [inline] |
Concatenate typed vector in an expression.
vector | to concatenate. |
Reimplemented from ucommon::Vector.
Definition at line 477 of file vector.h.
T& ucommon::vectorof< T >::operator[] | ( | int | index | ) | [inline] |
Return a pointer from the vector by array reference.
index | of vector member pointer to return. |
Reimplemented from ucommon::Vector.