Neuralyzer::Transforms::V2::ReductionStep
Neuralyzer::Transforms::V2::ReductionStep
Represents a reduction that computes a value for the store. More…
#include <ReductionStep.hpp>
Public Functions
| Name | |
|---|---|
| ReductionStep() =default Default constructor. |
|
| ReductionStep(std::string name, std::string key) Construct a reduction step with name and output key. |
|
| template <typename Params > |
ReductionStep(std::string name, std::string key, Params p) Construct a reduction step with parameters. |
| bool | hasParams() const Check if this step has parameters. |
| bool | hasBindings() const Check if this step has parameter bindings. |
| bool | hasTypeInfo() const Check if type information has been populated. |
Public Attributes
| Name | |
|---|---|
| std::string | reduction_name Name of the registered range reduction (e.g., “Mean”, “StdDev”). |
| std::string | output_key Key under which to store the result in PipelineValueStore. |
| std::any | params Type-erased reduction parameters (optional). |
| std::map< std::string, std::string > | param_bindings |
| std::type_index | input_type Input element type for the reduction (e.g., typeid(float)). |
| std::type_index | output_type Output scalar type (e.g., typeid(float)). |
| std::type_index | params_type Parameter type (e.g., typeid(NoReductionParams)). |
Detailed Description
struct Neuralyzer::Transforms::V2::ReductionStep;Represents a reduction that computes a value for the store.
A ReductionStep encapsulates:
- The name of the reduction to execute (from RangeReductionRegistry)
- The key under which to store the result
- Optional parameters for the reduction
- Optional bindings for the reduction’s own parameters
The result of executing a ReductionStep is a scalar value that gets stored in the PipelineValueStore under [output_key](/api_generated/Classes/structNeuralyzer_1_1Transforms_1_1V2_1_1ReductionStep.md#variable-output-key).
Public Functions Documentation
function ReductionStep
ReductionStep() =defaultDefault constructor.
function ReductionStep
inline ReductionStep(
std::string name,
std::string key
)Construct a reduction step with name and output key.
Parameters:
- name Name of the registered reduction
- key Store key for the result
function ReductionStep
template <typename Params >
inline ReductionStep(
std::string name,
std::string key,
Params p
)Construct a reduction step with parameters.
Parameters:
- name Name of the registered reduction
- key Store key for the result
- p Reduction parameters
function hasParams
inline bool hasParams() constCheck if this step has parameters.
function hasBindings
inline bool hasBindings() constCheck if this step has parameter bindings.
function hasTypeInfo
inline bool hasTypeInfo() constCheck if type information has been populated.
Public Attributes Documentation
variable reduction_name
std::string reduction_name;Name of the registered range reduction (e.g., “Mean”, “StdDev”).
variable output_key
std::string output_key;Key under which to store the result in PipelineValueStore.
variable params
std::any params;Type-erased reduction parameters (optional).
variable param_bindings
std::map< std::string, std::string > param_bindings;Bindings for the reduction’s own parameters (optional) Key: param field name, Value: store key
variable input_type
std::type_index input_type = typeid(void);Input element type for the reduction (e.g., typeid(float)).
variable output_type
std::type_index output_type = typeid(void);Output scalar type (e.g., typeid(float)).
variable params_type
std::type_index params_type = typeid(void);Parameter type (e.g., typeid(NoReductionParams)).
Updated on 2026-11-13 at 20:25:41 +0000