CbmRoot
|
Class of arrays, which can be accessed by an enum class entry as an index. More...
#include <CaEnumArray.h>
Public Member Functions | |
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. | |
Private Types | |
using | U = typename std::underlying_type<E>::type |
Underlying type of enumeration. | |
using | Arr = std::array<T, static_cast<std::size_t>(E::END)> |
Private Member Functions | |
template<typename Archive > | |
void | serialize (Archive &ar, const unsigned int) |
Friends | |
class | boost::serialization::access |
Class of arrays, which can be accessed by an enum class entry as an index.
E | The enum class type |
T | Type of data in the underlying array |
E | The enum class type |
T | Type of data in the underlying array |
|
private |
Definition at line 37 of file CaEnumArray.h.
|
private |
Underlying type of enumeration.
Definition at line 36 of file CaEnumArray.h.
|
inline |
Convertion operator to the base array class.
Definition at line 60 of file CaEnumArray.h.
|
inline |
Mutable access operator, indexed by enum entry.
Definition at line 41 of file CaEnumArray.h.
|
inline |
Constant access operator, indexed by enum entry.
Definition at line 50 of file CaEnumArray.h.
|
inline |
Mutable access operator, indexed by underlying index type.
Definition at line 47 of file CaEnumArray.h.
|
inline |
Constant access operator, indexed by underlying index type.
index | Index of the element |
Definition at line 57 of file CaEnumArray.h.
|
inlineprivate |
Definition at line 65 of file CaEnumArray.h.
|
friend |
Definition at line 63 of file CaEnumArray.h.