Public Member Functions | List of all members
EnumArray< E, T, N > Struct Template Reference

Stack array using an enum as indexer. More...

#include <pqPythonUtils.h>

Inheritance diagram for EnumArray< E, T, N >:
Inheritance graph
[legend]

Public Member Functions

T & operator[] (E e)
 
const T & operator[] (E e) const
 

Detailed Description

template<typename E, class T, std::size_t N = static_cast<size_t>(E::END)>
struct EnumArray< E, T, N >

Stack array using an enum as indexer.

The enum should contain as its last element END. Otherwise, you should set the third template parameter N to the size of your enum.

Definition at line 61 of file pqPythonUtils.h.

Member Function Documentation

◆ operator[]() [1/2]

template<typename E, class T, std::size_t N = static_cast<size_t>(E::END)>
T& EnumArray< E, T, N >::operator[] ( e)
inline

Definition at line 63 of file pqPythonUtils.h.

◆ operator[]() [2/2]

template<typename E, class T, std::size_t N = static_cast<size_t>(E::END)>
const T& EnumArray< E, T, N >::operator[] ( e) const
inline

Definition at line 64 of file pqPythonUtils.h.


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