Skip to main content

AnalogSliceGathererComputer

AnalogSliceGathererComputer

Computer for gathering analog data slices within intervals. More…

#include <AnalogSliceGathererComputer.h>

Inherits from IColumnComputer< T >

Public Functions

Name
AnalogSliceGathererComputer(std::shared_ptr< IAnalogSource > source)
Constructor for AnalogSliceGathererComputer.
AnalogSliceGathererComputer(std::shared_ptr< IAnalogSource > source, std::string sourceName)
Constructor with custom source name.
virtual std::pair< std::vector< T >, ColumnEntityIds > compute(ExecutionPlan const & plan) const override
Computes the gathered data slices for all intervals.
std::string getSourceDependency() const override

Additional inherited members

Public Functions inherited from IColumnComputer< T >

Name
virtual ~IColumnComputer() =default
IColumnComputer(IColumnComputer const & ) =delete
IColumnComputer & operator=(IColumnComputer const & ) =delete
IColumnComputer(IColumnComputer && ) =delete
IColumnComputer & operator=(IColumnComputer && ) =delete
virtual std::vector< std::string > getDependencies() const
Declares dependencies on other columns.
virtual EntityIdStructure getEntityIdStructure() const
Gets the EntityID structure type for this computer.
virtual ColumnEntityIds computeColumnEntityIds(ExecutionPlan const & plan) const
Computes all EntityIDs for the column using the high-level variant approach.
virtual std::vector< EntityId > computeCellEntityIds(ExecutionPlan const & plan, size_t row_index) const
Computes EntityIDs for a specific row.
virtual bool hasEntityIds() const
Checks if this computer can provide EntityID information.

Protected Functions inherited from IColumnComputer< T >

Name
IColumnComputer() =default

Detailed Description

template <typename T >
class AnalogSliceGathererComputer;

Computer for gathering analog data slices within intervals.

Template Parameters:

  • T The numeric type for the gathered data (typically double or float).

Source type: IAnalogSource Selector type: Interval Output type: std::vector

This computer strategy is responsible for iterating through an ExecutionPlan of interval index pairs and, for each pair, copying the corresponding slice of data from an IAnalogSource into a new vector. The result is a column where each cell contains a std::vector of the analog data within that interval.

Public Functions Documentation

function AnalogSliceGathererComputer

inline explicit AnalogSliceGathererComputer(
    std::shared_ptr< IAnalogSource > source
)

Constructor for AnalogSliceGathererComputer.

Parameters:

  • source Shared pointer to the analog source to gather data from.

function AnalogSliceGathererComputer

inline AnalogSliceGathererComputer(
    std::shared_ptr< IAnalogSource > source,
    std::string sourceName
)

Constructor with custom source name.

Parameters:

  • source Shared pointer to the analog source to gather data from.
  • sourceName Custom name for the source dependency.

function compute

inline virtual std::pair< std::vector< T >, ColumnEntityIds > compute(
    ExecutionPlan const & plan
) const override

Computes the gathered data slices for all intervals.

Parameters:

  • plan The execution plan containing interval boundaries.

Return: Vector of vectors, where each inner vector contains the data slice for one interval.

Reimplements: IColumnComputer::compute

This method iterates through the ExecutionPlan’s intervals and gathers the corresponding data slices from the analog source.

function getSourceDependency

inline std::string getSourceDependency() const override

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