|
CartoType API
|
#include <cartotype_array.h>
Classes | |
| union | TWord |
Public Member Functions | |
| void | Clear () |
| int32 | Count () const |
| T * | Data () |
| const T * | Data () const |
| T & | operator[] (int32 aIndex) |
| const T & | operator[] (int32 aIndex) const |
| TResult | Append (T aElement) |
A limited-functionality variable-size array for small objects, optimised for the cases of 0 or 1 elements in the array.
| TResult CartoType::CCompactArray< T >::Append | ( | T | aElement | ) | [inline] |
Append a single element.
| void CartoType::CCompactArray< T >::Clear | ( | ) | [inline] |
Delete all the elements.
| int32 CartoType::CCompactArray< T >::Count | ( | ) | const [inline] |
Return the number of elements.
| T* CartoType::CCompactArray< T >::Data | ( | ) | [inline] |
Return a writable pointer to the underlying C++ array of elements.
| const T* CartoType::CCompactArray< T >::Data | ( | ) | const [inline] |
Return a read-only pointer to the underlying C++ array of elements.
| T& CartoType::CCompactArray< T >::operator[] | ( | int32 | aIndex | ) | [inline] |
The writable array index operator, allowing the array to be treated like a C++ array.
| const T& CartoType::CCompactArray< T >::operator[] | ( | int32 | aIndex | ) | const [inline] |
The constant array index operator, allowing the array to be treated like a C++ array.
1.7.5.1