Image Component Library (ICL)
Public Member Functions | Public Attributes | List of all members
icl::utils::FixedArray< T, DIM > Struct Template Reference

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

#include <FixedArray.h>

Public Member Functions

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

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

◆ operator[]() [1/2]

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

index access operator

◆ operator[]() [2/2]

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

index access operator (const)

Member Data Documentation

◆ m_data

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: