ThunderEgg  1.0.0
ThunderEgg::DimensionalArray< N, T > Class Template Reference

A dimensional array, used for storing templated with and integer. For example a dimensional array of length 3 holding type T will have three values T<0> at index 0, T<1> at index 1, and T<2> at index 2. More...

#include <DimensionalArray.h>

Public Member Functions

template<int I>
T< I > & get ()
 Get a value at a given index. More...
 
template<int I>
const T< I > & get () const
 Get a value at an index. More...
 

Detailed Description

template<int N, template< int > class T>
class ThunderEgg::DimensionalArray< N, T >

A dimensional array, used for storing templated with and integer. For example a dimensional array of length 3 holding type T will have three values T<0> at index 0, T<1> at index 1, and T<2> at index 2.

Template Parameters
Nthe length of the array
Tthe type to hold

Member Function Documentation

◆ get() [1/2]

template<int N, template< int > class T>
template<int I>
T<I>& ThunderEgg::DimensionalArray< N, T >::get ( )
inline

Get a value at a given index.

Template Parameters
Ithe index
Returns
T& the value at that index

◆ get() [2/2]

template<int N, template< int > class T>
template<int I>
const T<I>& ThunderEgg::DimensionalArray< N, T >::get ( ) const
inline

Get a value at an index.

Template Parameters
Ithe index
Returns
const T& the value

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