Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
icl::utils::FixedArray< T, DIM > Struct Template Reference

Fixed C++-array wrapper class for data handling. More...

#include <FixedArray.h>

List of all members.

Public Member Functions

T & operator[] (unsigned int idx)
 index access operator
const T & operator[] (unsigned int idx) const
 index access operator (const)

Public Attributes

m_data [DIM]

Detailed Description

template<class T, unsigned int DIM>
struct icl::utils::FixedArray< T, DIM >

Fixed C++-array wrapper class for data handling.

This class is specialized for the DIM values 1,2,3 and 4 FixedArray<T,1> contains a union that shares the 1-dim data with a single value x. FixedArray<T,2> has extra values x,y, then x,y,z and finally x,y,z,w (w can also be called h)


Member Function Documentation

template<class T, unsigned int DIM>
T& icl::utils::FixedArray< T, DIM >::operator[] ( unsigned int  idx) [inline]
template<class T, unsigned int DIM>
const T& icl::utils::FixedArray< T, DIM >::operator[] ( unsigned int  idx) const [inline]

Member Data Documentation

template<class T, unsigned int DIM>
T icl::utils::FixedArray< T, DIM >::m_data[DIM]

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines