Class mapping from an enumerator of an instantiation of a template.
More...
#include <eagine/enum_map.hpp>
|
| static_enum_map ()=default |
| Default constructor.
|
|
template<typename... Args, typename = std::enable_if_t<(sizeof...(Args) > 1)>> |
| static_enum_map (construct_from_t, const Args &... args) |
| Explicit construction from arguments that are passed to the units.
|
|
template<Enum Key> |
auto | get () noexcept -> Unit< Key > & |
| Returns a reference to the unit with the specified enumerator key. More...
|
|
template<Enum Key> |
auto | get () const noexcept -> const Unit< Key > & |
| Returns a const reference to the unit with the specified enumerator key. More...
|
|
template<typename Visitor > |
auto | visit (Enum key, Visitor visitor) noexcept -> bool |
| Calls a visitor function on the unit with the specified key. More...
|
|
template<typename Visitor > |
auto | visit (Enum key, Visitor visitor) const noexcept -> bool |
| Calls a visitor function on the unit with the specified key. More...
|
|
template<typename Visitor > |
auto | visit (bitfield< Enum > keys, Visitor visitor) noexcept -> span_size_t |
| Calls a visitor function on the unit with the specified keys. More...
|
|
template<typename Visitor > |
auto | visit (bitfield< Enum > keys, Visitor visitor) const noexcept -> span_size_t |
| Calls a visitor function on the unit with the specified keys. More...
|
|
template<typename Visitor > |
auto | visit_all (Visitor visitor) noexcept -> bool |
| Calls a visitor function on all units. More...
|
|
template<typename Visitor > |
auto | visit_all (Visitor visitor) const noexcept -> bool |
| Calls a visitor function on all units. More...
|
|
template<typename Enum, template< Enum > class Unit, Enum... Keys>
class eagine::static_enum_map< Enum, Unit, Keys >
Class mapping from an enumerator of an instantiation of a template.
◆ get() [1/2]
template<typename Enum , template< Enum > class Unit, Enum... Keys>
template<Enum Key>
Returns a const reference to the unit with the specified enumerator key.
- See also
- visit
◆ get() [2/2]
template<typename Enum , template< Enum > class Unit, Enum... Keys>
template<Enum Key>
Returns a reference to the unit with the specified enumerator key.
- See also
- visit
◆ visit() [1/4]
template<typename Enum , template< Enum > class Unit, Enum... Keys>
template<typename Visitor >
Calls a visitor function on the unit with the specified keys.
- See also
- visit_all
-
get
◆ visit() [2/4]
template<typename Enum , template< Enum > class Unit, Enum... Keys>
template<typename Visitor >
Calls a visitor function on the unit with the specified keys.
- See also
- visit_all
-
get
◆ visit() [3/4]
template<typename Enum , template< Enum > class Unit, Enum... Keys>
template<typename Visitor >
Calls a visitor function on the unit with the specified key.
- See also
- visit_all
-
get
◆ visit() [4/4]
template<typename Enum , template< Enum > class Unit, Enum... Keys>
template<typename Visitor >
Calls a visitor function on the unit with the specified key.
- See also
- visit_all
-
get
◆ visit_all() [1/2]
template<typename Enum , template< Enum > class Unit, Enum... Keys>
template<typename Visitor >
Calls a visitor function on all units.
- See also
- visit
◆ visit_all() [2/2]
template<typename Enum , template< Enum > class Unit, Enum... Keys>
template<typename Visitor >
Calls a visitor function on all units.
- See also
- visit
The documentation for this class was generated from the following file: