GrPPI
0.2
Generic and Reusable Parallel Pattern Interface
|
#include <polymorphic_execution.h>
Public Member Functions | |
polymorphic_execution () noexcept | |
Create empty polymorphic execution. More... | |
bool | has_execution () const noexcept |
Determine if there is an execution stored. More... | |
const std::type_info & | type () const noexcept |
template<typename E > | |
bool | is_execution () const |
template<typename E , requires_execution_policy< E > = 0> | |
E * | execution_ptr () |
Get the execution pointer for a given type. More... | |
template<typename E , requires_not_execution_policy< E > = 0> | |
E * | execution_ptr () |
Get the execution pointer for a given type. More... | |
Friends | |
template<typename E > | |
polymorphic_execution | make_polymorphic_execution () |
Polymorphic execution supporting any grppi execution. A polymorphic execution may hold either an execution or be empty.
|
inlinenoexcept |
Create empty polymorphic execution.
|
inline |
Get the execution pointer for a given type.
|
inline |
Get the execution pointer for a given type.
|
inlinenoexcept |
Determine if there is an execution stored.
|
inline |
|
inlinenoexcept |
Get the typeid of the current execution
|
friend |
Create from other static policy with no arguments.