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

Specialization for 2D-matrics providing direct access to values x, y. More...

#include <FixedArray.h>

Public Member Functions

 FixedArray ()
 empty constructor (leaving data uninitialized) More...
 
 FixedArray (const T &x, const T &y)
 constructor with given values, x and y More...
 
T & operator[] (unsigned int idx)
 index access operator More...
 
const T & operator[] (unsigned int idx) const
 index access operator (const) More...
 

Public Attributes

union icl::utils::FixedArray< T, 2u >:: { ... }  
 
m_data [2]
 
x
 
y
 

Detailed Description

template<class T>
struct icl::utils::FixedArray< T, 2u >

Specialization for 2D-matrics providing direct access to values x, y.

Constructor & Destructor Documentation

◆ FixedArray() [1/2]

template<class T >
icl::utils::FixedArray< T, 2u >::FixedArray ( )
inline

empty constructor (leaving data uninitialized)

◆ FixedArray() [2/2]

template<class T >
icl::utils::FixedArray< T, 2u >::FixedArray ( const T &  x,
const T &  y 
)
inline

constructor with given values, x and y

Member Function Documentation

◆ operator[]() [1/2]

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

index access operator

◆ operator[]() [2/2]

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

index access operator (const)

Member Data Documentation

◆ @3

union { ... }

◆ m_data

template<class T >
T icl::utils::FixedArray< T, 2u >::m_data[2]

◆ x

template<class T >
T icl::utils::FixedArray< T, 2u >::x

◆ y

template<class T >
T icl::utils::FixedArray< T, 2u >::y

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