GQCP
|
#include <FunctionalStep.hpp>
Public Types | |
using | Environment = _Environment |
using | Function = std::function< void(Environment &)> |
![]() | |
using | Environment = _Environment |
Public Member Functions | |
FunctionalStep (const Function &function, const std::string &description="A custom functional step.") | |
std::string | description () const override |
void | execute (Environment &environment) override |
![]() | |
virtual | ~Step ()=default |
virtual std::string | description () const =0 |
virtual void | execute (Environment &environment)=0 |
A general algorithmic step that acts as a wrapper around a function call.
_Environment | the type of the environment that this step can read from and write to |
using GQCP::FunctionalStep< _Environment >::Environment = _Environment |
using GQCP::FunctionalStep< _Environment >::Function = std::function<void(Environment&)> |
|
inline |
|
inlineoverridevirtual |
Implements GQCP::Step< _Environment >.
|
inlineoverridevirtual |
Execute/perform this algorithm step.
environment | the environment that this step can read from and write to |
Implements GQCP::Step< _Environment >.