Celeritas
0.5.0-86+4a8eea4
|
Classes | |
struct | celeritas::UniverseTypeTraits< UniverseType::simple > |
struct | celeritas::UniverseTypeTraits< UniverseType::rect_array > |
Macros | |
#define | ORANGE_UNIV_TRAITS(ENUM_VALUE, CLS) |
#define | ORANGE_UT_VISIT_CASE(TYPE) |
Functions | |
template<class F > | |
decltype(auto) CELER_CONSTEXPR_FUNCTION | celeritas::visit_universe_type (F &&func, UniverseType ut) |
Expand a macro to a switch statement over all possible universe types. More... | |
#define ORANGE_UNIV_TRAITS | ( | ENUM_VALUE, | |
CLS | |||
) |
#define ORANGE_UT_VISIT_CASE | ( | TYPE | ) |
decltype(auto) CELER_CONSTEXPR_FUNCTION celeritas::visit_universe_type | ( | F && | func, |
UniverseType | ut | ||
) |
Expand a macro to a switch statement over all possible universe types.
The func
argument should be a functor that takes a single argument which is a UniverseTypeTraits instance.