|
FOUND
|
A ModifyingPipeline modifies a resource with a given set of stages. More...
#include <pipelines.hpp>


Public Member Functions | |
| ModifyingPipeline ()=default | |
| Constructs a ModifyingPipeline. | |
| ModifyingPipeline & | AddStage (ModifyingStage< T > &stage) |
| Adds a stage to this. | |
| ModifyingPipeline & | Complete (ModifyingStage< T > &stage) |
| Completes a pipeline with a stage. | |
| T | Run (const T &input) override |
| Executes this Modifying Pipeline. | |
Public Member Functions inherited from found::Pipeline< Input, Output, N > | |
| void | DoAction () override |
| Runs a Pipeline. | |
| virtual Output | Run (const Input &input)=0 |
| Runs this Pipeline. | |
Public Member Functions inherited from found::FunctionStage< Input, Output > | |
| FunctionStage ()=default | |
| Constructs a new Stage. | |
| virtual | ~FunctionStage ()=default |
| Destroys this. | |
| Input & | GetResource () |
| Returns the stored input of this. | |
| Output *& | GetProduct () |
| Returns the stored output of this. | |
Public Member Functions inherited from found::Stage< const raw_type< Input > &, raw_type< Output > > | |
| virtual raw_type< Output > | Run (const raw_type< Input > & input)=0 |
| Runs this stage. | |
Additional Inherited Members | |
Protected Member Functions inherited from found::Pipeline< Input, Output, N > | |
| void | AddStageHelper (Action &stage) |
| Adds a stage to this pipeline. | |
| void | CompleteHelper (Action &stage) |
| Completes a pipeline with a stage. | |
| void | DoActionHelper () |
| Runs the entire pipeline. | |
Protected Attributes inherited from found::Pipeline< Input, Output, N > | |
| Action * | stages [N] |
| The stages of this. | |
| size_t | size = 0 |
| The number of stages. | |
| bool | ready = false |
| Whether we're complete. | |
| std::optional< Output > | finalProduct |
| The final product. This is only sometimes used. | |
Protected Attributes inherited from found::FunctionStage< Input, Output > | |
| Input | resource |
| The stored input for this. | |
| Output * | product = nullptr |
| The pointer to the stored output for this. | |
A ModifyingPipeline modifies a resource with a given set of stages.
| T | The resource to modify |
| N | The number of stages that modify the resource |
|
inline |
Adds a stage to this.
| stage | The ModifyingStage<T> to add to this |
|
inline |
Completes a pipeline with a stage.
| stage | The stage to add |
|
inlineoverride |
Executes this Modifying Pipeline.
| input | The input to modify |