![]() |
HPX_REGISTER_ACTION — Define the necessary component action boilerplate code.
// In header: <hpx/runtime/actions/action_support.hpp>
HPX_REGISTER_ACTION(...)
The macro HPX_REGISTER_ACTION can be used to define all the boilerplate code which is required for proper functioning of component actions in the context of HPX.
The parameter action is the type of the action to define the boilerplate for.
This macro can be invoked with an optional second parameter. This parameter specifies a unique name of the action to be used for serialization purposes. The second parameter has to be specified if the first parameter is not usable as a plain (non-qualified) C++ identifier, i.e. the first parameter contains special characters which cannot be part of a C++ identifier, such as '<', '>', or ':'.
![]() |
Note |
---|---|
This macro has to be used once for each of the component actions defined using one of the HPX_DEFINE_COMPONENT_ACTION macros. It has to occur exactly once for each of the actions, thus it is recommended to place it into the source file defining the component. There is no need to use this macro for actions which have template type arguments (see HPX_REGISTER_ACTION_DECLARATION_TEMPLATE) |