Skip to main content

PreReductionPanel

PreReductionPanel

Collapsible panel for managing pre-reduction steps. More…

#include <PreReductionPanel.hpp>

Inherits from QWidget

Public Signals

Name
void preReductionsChanged()
Emitted when pre-reductions change (add/remove).

Public Functions

Name
PreReductionPanel(QWidget * parent =[nullptr])
~PreReductionPanel() override
void setInputType(std::type_index element_type)
Set the input element type to filter available reductions.
std::vector< PreReductionEntry > const & entries() const
Get all configured pre-reduction entries.
void clearEntries()
Clear all pre-reduction entries.
bool addEntry(std::string const & reduction_name, std::string const & output_key)
Add a pre-reduction entry.
bool loadFromDescriptors(std::vector< Neuralyzer::Transforms::V2::Examples::PreReductionStepDescriptor > const & descriptors)
Rebuild all entries from a list of PreReductionStepDescriptors.

Detailed Description

class PreReductionPanel;

Collapsible panel for managing pre-reduction steps.

Pre-reductions are computed over the entire input data range before the main pipeline executes. The results are stored in a value store and can be referenced via param_bindings in pipeline steps.

Example: ZScoreNormalizeV2 requires “mean” and “stddev” pre-reductions.

Public Signals Documentation

signal preReductionsChanged

void preReductionsChanged()

Emitted when pre-reductions change (add/remove).

Public Functions Documentation

function PreReductionPanel

explicit PreReductionPanel(
    QWidget * parent =nullptr
)

function ~PreReductionPanel

~PreReductionPanel() override

function setInputType

void setInputType(
    std::type_index element_type
)

Set the input element type to filter available reductions.

Parameters:

  • element_type The element type of the pipeline input

function entries

inline std::vector< PreReductionEntry > const & entries() const

Get all configured pre-reduction entries.

function clearEntries

void clearEntries()

Clear all pre-reduction entries.

function addEntry

bool addEntry(
    std::string const & reduction_name,
    std::string const & output_key
)

Add a pre-reduction entry.

Parameters:

  • reduction_name The reduction name from RangeReductionRegistry
  • output_key The key for param binding reference

Return: true if successfully added

function loadFromDescriptors

bool loadFromDescriptors(
    std::vector< Neuralyzer::Transforms::V2::Examples::PreReductionStepDescriptor > const & descriptors
)

Rebuild all entries from a list of PreReductionStepDescriptors.

Parameters:

  • descriptors The pre-reduction descriptors from a parsed PipelineDescriptor

Return: true if all entries were loaded successfully

Used by JSON → UI loading (Phase 2). Clears existing entries, then adds each entry from the descriptor’s reduction_name and output_key fields.


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