Celeritas  0.5.0-86+4a8eea4
Public Types | Public Member Functions | Static Public Attributes | List of all members
celeritas::EnumToClass< E, EV, T > Struct Template Reference

Helper struct for mapping enums to classes. More...

#include <EnumClassUtils.hh>

Public Types

using enum_type = E
 
using type = T
 

Public Member Functions

CELER_CONSTEXPR_FUNCTION operator E () const noexcept
 
CELER_CONSTEXPR_FUNCTION enum_type operator() () const noexcept
 

Static Public Attributes

static constexpr enum_type value = EV
 

Detailed Description

template<class E, E EV, class T>
struct celeritas::EnumToClass< E, EV, T >

Helper struct for mapping enums to classes.

This class can be passed as a "tag" to functors that can then retrieve its value or the associated class. It can be implicitly converted into a SurfaceType enum for use in template parameters.


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