Class Pipeline

Class Documentation

class Pipeline

A linear sequence of Actions executed in order.

If any Action fails, execution stops and the error is returned.

Public Types

using ActionPtr = std::unique_ptr<Action>

Public Functions

Pipeline() = default
inline Pipeline &add(ActionPtr Act)

Append an Action to the pipeline.

inline AMSStatus run(EvalContext &Ctx) const

Execute all actions in order; stops on first error.

inline size_t size() const noexcept

Number of actions in the pipeline.

inline bool empty() const noexcept

True if there are no actions.

inline void clear() noexcept

Remove all actions.