CartoType API
Public Member Functions
CartoType::TStackArray< T, aMaxStackElements > Class Template Reference

#include <cartotype_array.h>

List of all members.

Public Member Functions

 TStackArray (TResult &aError, int aElements)
int32 Count () const
T * Data ()
const T * Data () const
T & operator[] (int32 aIndex)
const T & operator[] (int32 aIndex) const

Detailed Description

template<class T, int aMaxStackElements>
class CartoType::TStackArray< T, aMaxStackElements >

An array that is kept on the stack if it has aMaxStackElements or fewer, otherwise on the heap. Unusually, it has a constructor that can return an error.


Member Function Documentation

template<class T, int aMaxStackElements>
int32 CartoType::TStackArray< T, aMaxStackElements >::Count ( ) const [inline]

Return the number of elements.

template<class T, int aMaxStackElements>
T* CartoType::TStackArray< T, aMaxStackElements >::Data ( ) [inline]

Return a writable pointer to the underlying C++ array of elements.

template<class T, int aMaxStackElements>
const T* CartoType::TStackArray< T, aMaxStackElements >::Data ( ) const [inline]

Return a read-only pointer to the underlying C++ array of elements.

template<class T, int aMaxStackElements>
T& CartoType::TStackArray< T, aMaxStackElements >::operator[] ( int32  aIndex) [inline]

The writable array index operator, allowing the array to be treated like a C++ array.

template<class T, int aMaxStackElements>
const T& CartoType::TStackArray< T, aMaxStackElements >::operator[] ( int32  aIndex) const [inline]

The constant array index operator, allowing the array to be treated like a C++ array.


The documentation for this class was generated from the following file: