Skip to main content

Neuralyzer::Transforms::V2::PipelineStep

Neuralyzer::Transforms::V2::PipelineStep

Represents a single step in a transform pipeline. More…

#include <PipelineStep.hpp>

Public Functions

Name
template <typename Params >
PipelineStep(std::string name, Params p)
PipelineStep(std::string name)
void applyBindings(PipelineValueStore const & store) const
bool hasBindings() const
Check if this step has any parameter bindings.
template <typename InputElement ,typename OutputElement ,typename Params >
void
createElementExecutor()
Create element executor for specific types.
template <typename InputElement ,typename OutputElement ,typename Params >
void
createTimeGroupedExecutor()
Create time-grouped executor for specific types.

Public Attributes

Name
std::string transform_name
std::any params
std::map< std::string, std::string > param_bindings
std::function< ElementVariant(ElementVariant const &, std::any const &)> element_executor
std::function< BatchVariant(BatchVariant const &, std::any const &)> time_grouped_executor

Detailed Description

struct Neuralyzer::Transforms::V2::PipelineStep;

Represents a single step in a transform pipeline.

Each step contains:

  • Transform name (for registry lookup)
  • Type-erased parameters
  • Type-erased execution functions for both element and time-grouped transforms
  • Parameter bindings from value store keys to parameter fields

The executors are captured at the time of step creation, eliminating the need for runtime type checking or reflection.

Parameter Bindings

The [param_bindings](/api_generated/Classes/structNeuralyzer_1_1Transforms_1_1V2_1_1PipelineStep.md#variable-param-bindings) map allows pipeline steps to receive values from a PipelineValueStore at execution time. This enables:

  • Wiring reduction outputs into transform parameters
  • Trial-specific context injection (alignment time, trial index)
  • Dynamic parameter configuration from computed values

Example: ```cpp

PipelineStep step(“ZScoreNormalize”, ZScoreParams{}); step.param_bindings = { {“mean”, “computed_mean”}, // field_name -> store_key {“std_dev”, “computed_std”} };

PipelineValueStore store; store.set(“computed_mean”, 0.5f); store.set(“computed_std”, 0.1f);

step.applyBindings(store); // Updates params with bound values


## Public Functions Documentation

### function PipelineStep

```cpp
template <typename Params >
inline PipelineStep(
    std::string name,
    Params p
)

function PipelineStep

inline PipelineStep(
    std::string name
)

function applyBindings

void applyBindings(
    PipelineValueStore const & store
) const

function hasBindings

bool hasBindings() const

Check if this step has any parameter bindings.

Return: true if param_bindings is not empty

function createElementExecutor

template <typename InputElement ,
typename OutputElement ,
typename Params >
inline void createElementExecutor()

Create element executor for specific types.

This template method creates a properly typed executor that can be called from the pipeline without knowing the parameter type.

function createTimeGroupedExecutor

template <typename InputElement ,
typename OutputElement ,
typename Params >
inline void createTimeGroupedExecutor()

Create time-grouped executor for specific types.

Public Attributes Documentation

variable transform_name

std::string transform_name;

variable params

std::any params;

variable param_bindings

std::map< std::string, std::string > param_bindings;

Bindings from value store to param fields Key: param field name, Value: store key

variable element_executor

std::function< ElementVariant(ElementVariant const &, std::any const &)> element_executor;

variable time_grouped_executor

std::function< BatchVariant(BatchVariant const &, std::any const &)> time_grouped_executor;

Updated on 2026-11-13 at 20:25:41 +0000