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

Specialization for 1D-vectors providing a value x. More...

#include <FixedArray.h>

Public Member Functions

 FixedArray ()
 empty constructor (leaving data uninitialized) More...
 
 FixedArray (const T &x)
 constructor with given value x More...
 
T & operator[] (unsigned int idx)
 index access operator More...
 
const T & operator[] (unsigned int idx) const
 index access operator (const) More...
 
 operator T () const
 reinterprect FixedArray<T,1u> as a scalar More...
 

Public Attributes

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

Detailed Description

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

Specialization for 1D-vectors providing a value x.

Constructor & Destructor Documentation

◆ FixedArray() [1/2]

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

empty constructor (leaving data uninitialized)

◆ FixedArray() [2/2]

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

constructor with given value x

Member Function Documentation

◆ operator T()

template<class T >
icl::utils::FixedArray< T, 1u >::operator T ( ) const
inline

reinterprect FixedArray<T,1u> as a scalar

◆ operator[]() [1/2]

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

index access operator

◆ operator[]() [2/2]

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

index access operator (const)

Member Data Documentation

◆ @1

union { ... }

◆ m_data

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

◆ x

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

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