Rebel Fork Framework
Urho3D::EnumArray< T, E, Size > Class Template Reference

Fixed-size array indexed by enum. More...

#include <Urho3D/Container/FlagSet.h>

Inheritance diagram for Urho3D::EnumArray< T, E, Size >:

Public Types

using enum_type = E
 Enum type.
 
using underlying_integer_type = typename std::underlying_type< enum_type >::type
 Integer type.
 
using base_type = ea::array< T, Size >
 Base array type.
 

Public Member Functions

constexpr EnumArray (const EnumArray &other)=default
 
constexpr EnumArray (EnumArray &&other)=default
 
constexpr EnumArrayoperator= (const EnumArray &other)=default
 
constexpr EnumArrayoperator= (EnumArray &&other)=default
 
constexpr bool operator== (const EnumArray &rhs) const
 
constexpr bool operator!= (const EnumArray &rhs) const
 
constexpr EnumArray ()
 
constexpr EnumArray (const T &value)
 
template<size_t N>
constexpr EnumArray (const T(&values)[N])
 
constexpr base_type::reference operator[] (enum_type i)
 
constexpr base_type::const_reference operator[] (enum_type i) const
 
constexpr base_type::const_reference at (enum_type i) const
 
constexpr base_type::reference at (enum_type i)
 

Detailed Description

template<class T, class E, size_t Size = static_cast<size_t>(E::Count)>
class Urho3D::EnumArray< T, E, Size >

Fixed-size array indexed by enum.

Constructor & Destructor Documentation

◆ EnumArray() [1/2]

template<class T , class E , size_t Size = static_cast<size_t>(E::Count)>
constexpr Urho3D::EnumArray< T, E, Size >::EnumArray ( const EnumArray< T, E, Size > &  other)
constexprdefault

Inherit constructors and operators from base class.

◆ EnumArray() [2/2]

template<class T , class E , size_t Size = static_cast<size_t>(E::Count)>
constexpr Urho3D::EnumArray< T, E, Size >::EnumArray ( )
inlineconstexpr

Construct.

Member Function Documentation

◆ operator[]()

template<class T , class E , size_t Size = static_cast<size_t>(E::Count)>
constexpr base_type::reference Urho3D::EnumArray< T, E, Size >::operator[] ( enum_type  i)
inlineconstexpr

Access.


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