object::Array< T, N > Class Template Reference
Array is a simple abstraction of a C-like array, supporting an iterator interface. More...
#include <Array.h>
Public Types | |
typedef T | value_type |
Type definition of instatiated type. | |
typedef T * | pointer |
Type definition of pointer to intantiated type. | |
typedef T & | reference |
Type definition of a reference to intantiated type. | |
typedef T * | iterator |
Type definition of an iterator. | |
Public Member Functions | |
iterator | begin () |
Get an iterator which references the first element. | |
iterator | end () |
Get an iterator which marks the end of the Array. | |
T & | operator[] (int i) |
Provide access to the content of the Array. | |
const T & | operator[] (int i) const |
Provide access to the content of the Array. |
Detailed Description
template<typename T, unsigned int N>
class object::Array< T, N >
Array is a simple abstraction of a C-like array, supporting an iterator interface.
- Template Parameters:
-
T is the element type that is stored N is the count of elements that is stored
Member Typedef Documentation
template<typename T, unsigned int N>
typedef T* object::Array< T, N >::iterator |
Type definition of an iterator.
template<typename T, unsigned int N>
typedef T* object::Array< T, N >::pointer |
Type definition of pointer to intantiated type.
template<typename T, unsigned int N>
typedef T& object::Array< T, N >::reference |
Type definition of a reference to intantiated type.
template<typename T, unsigned int N>
typedef T object::Array< T, N >::value_type |
Type definition of instatiated type.
Member Function Documentation
template<typename T, unsigned int N>
iterator object::Array< T, N >::begin | ( | ) | [inline] |
Get an iterator which references the first element.
template<typename T, unsigned int N>
iterator object::Array< T, N >::end | ( | ) | [inline] |
Get an iterator which marks the end of the Array.
template<typename T, unsigned int N>
const T& object::Array< T, N >::operator[] | ( | int | i | ) | const [inline] |
Provide access to the content of the Array.
template<typename T, unsigned int N>
T& object::Array< T, N >::operator[] | ( | int | i | ) | [inline] |
Provide access to the content of the Array.
The documentation for this class was generated from the following file:
- include/object/Array.h