#include <CbmEnumArray.h>
|
T & | operator[] (const E &entry) |
| Mutable access operator, indexed by enum entry.
|
|
T & | operator[] (U index) |
| Mutable access operator, indexed by underlying index type.
|
|
const T & | operator[] (const E &entry) const |
| Constant access operator, indexed by enum entry.
|
|
const T & | operator[] (U index) const |
| Constant access operator, indexed by underlying index type.
|
|
| operator Arr & () const |
| Convertion operator to the base array class.
|
|
|
using | U = typename std::underlying_type<E>::type |
| Underlying type of enumeration.
|
|
using | Arr = std::array<T, static_cast<std::size_t>(E::END)> |
|
|
template<typename Archive > |
void | serialize (Archive &ar, const unsigned int) |
|
template<class E, class T>
class cbm::core::EnumArray< E, T >
Definition at line 26 of file CbmEnumArray.h.
◆ Arr
template<class E , class T >
template<class E , class T >
◆ operator Arr &()
template<class E , class T >
Convertion operator to the base array class.
Definition at line 48 of file CbmEnumArray.h.
◆ operator[]() [1/4]
template<class E , class T >
Mutable access operator, indexed by enum entry.
- Parameters
-
entry | Enum entry for the element |
Definition at line 33 of file CbmEnumArray.h.
◆ operator[]() [2/4]
template<class E , class T >
Constant access operator, indexed by enum entry.
- Parameters
-
entry | Enum entry for the element |
Definition at line 41 of file CbmEnumArray.h.
◆ operator[]() [3/4]
template<class E , class T >
Mutable access operator, indexed by underlying index type.
- Parameters
-
index | Index of the element |
Definition at line 37 of file CbmEnumArray.h.
◆ operator[]() [4/4]
template<class E , class T >
Constant access operator, indexed by underlying index type.
- Parameters
-
index | Index of the element |
Definition at line 45 of file CbmEnumArray.h.
◆ serialize()
template<class E , class T >
template<typename Archive >
◆ boost::serialization::access
template<class E , class T >
friend class boost::serialization::access |
|
friend |
The documentation for this class was generated from the following file: