Skip to main content

Neuralyzer::Transforms::V2::IRangeReduction

Neuralyzer::Transforms::V2::IRangeReduction

Base interface for type-erased range reductions. More…

#include <RangeReductionRegistry.hpp>

Inherited by Neuralyzer::Transforms::V2::TypedRangeReduction< Element, Scalar, Params >

Public Functions

Name
virtual ~IRangeReduction() =default
virtual std::any executeErased(std::any const & input_range, std::any const & params) const =0
Execute reduction with type-erased input/output.

Detailed Description

class Neuralyzer::Transforms::V2::IRangeReduction;

Base interface for type-erased range reductions.

Allows storage of heterogeneous reductions in a single map.

Public Functions Documentation

function ~IRangeReduction

virtual ~IRangeReduction() =default

function executeErased

virtual std::any executeErased(
    std::any const & input_range,
    std::any const & params
) const =0

Execute reduction with type-erased input/output.

Parameters:

  • input_range std::any containing std::span
  • params std::any containing the parameters

Exceptions:

  • std::bad_any_cast if types don’t match

Return: std::any containing the scalar result

Reimplemented by: Neuralyzer::Transforms::V2::TypedRangeReduction::executeErased


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