Celeritas
0.5.0-86+4a8eea4
|
Concrete utility class for managing an action with static strings. More...
#include <ActionInterface.hh>
Public Member Functions | |
StaticActionData (ActionId id, std::string_view label) noexcept(!CELERITAS_DEBUG) | |
Construct a concrete action from a label and ID. | |
StaticActionData (ActionId id, std::string_view label, std::string_view description) noexcept(!CELERITAS_DEBUG) | |
Construct a concrete action from an ID, a unique label, and a description. | |
ActionId | action_id () const |
ID of this action for verification. | |
std::string_view | label () const |
Short label. | |
std::string_view | description () const |
Descriptive label. | |
Concrete utility class for managing an action with static strings.
This is an implementation detail of StaticConcreteAction
, but it can be used manually for classes that inherit from multiple label
methods (e.g., something that's both an action and has aux data) for which the mixin method does not work.