Template Struct NodeExecutorImpl¶
Defined in File node.hpp
Inheritance Relationships¶
Base Type¶
public ripple::NodeExecutor(Struct NodeExecutor)
Struct Documentation¶
-
template<typename
Callable, typename ...Args>
structripple::NodeExecutorImpl: public ripple::NodeExecutor¶ The NodeExecutorImpl struct implements the NodeExecutor interface, storing a callable object which defines the work to be executed.
- Template Parameters
Callable: The type of the invocable to store.Args: The type of the callable’s arguments to store.
Public Functions
-
template<typename
InvType, typename ...ArgTypes>NodeExecutorImpl(InvType &&invocable, ArgTypes&&... args) noexcept¶ Constructor to store the invocable and args for the executor.
- Parameters
invocable: The invocable object to store.args: The arguments for the invocable.
- Template Parameters
InvType: The type of the invocable.ArgTypes: The types of the arguments.
-
~NodeExecutorImpl() noexcept final = default¶ Destuctor defaulted.
-
NodeExecutorImpl(const NodeExecutorImpl &other) noexcept¶ Copy constructor which copies the other executor into this one.
- Parameters
other: The other executor to copy.
-
NodeExecutorImpl(NodeExecutorImpl &&other) noexcept¶ Move constructor which moves the other executor into this.
- Parameters
other: The other executor to copy.
-
auto
operator=(const NodeExecutorImpl &other) noexcept -> NodeExecutorImpl&¶ Copy assignment to copy the other executor to this one.
- Return
A reference to the new executor.
- Parameters
other: The other executor to copy to this one.
-
auto
operator=(NodeExecutorImpl &&other) noexcept -> NodeExecutorImpl&¶ Move assignment to move the other executor to this one.
- Return
A reference to the new executor.
- Parameters
other: The other executor to move to this one.
-
auto
execute() noexcept -> void final¶ Implementation of the execute method to run the executor.
-
auto
clone(void *storage) const noexcept -> NodeExecutorImpl* final¶ Implementation of the clone method to copy this class into the provided storage.
- Return
A pointer to the cloned executor.
- Parameters
storage: The storage to clone into.