Skip to main content

RaggedAnalogTimeSeries::FlatElement

RaggedAnalogTimeSeries::FlatElement

Entry structure for flat element iteration. More…

#include <RaggedAnalogTimeSeries.hpp>

Public Functions

Name
FlatElement() =default
FlatElement(TimeFrameIndex t, float v)
TimeFrameIndex time() const
Get the time of this element (for TimeSeriesElement concept).
float value() const
Get the value of this element (for ValueElement concept).

Public Attributes

Name
TimeFrameIndex _time
float _value

Detailed Description

struct RaggedAnalogTimeSeries::FlatElement;

Entry structure for flat element iteration.

See: TimeSeriesConcepts.hpp for concept definitions

Represents a single (time, value) pair from the flattened ragged structure. Satisfies the TimeSeriesElement and ValueElement concepts. Does NOT satisfy EntityElement (RaggedAnalogTimeSeries has no EntityIds).

Public Functions Documentation

function FlatElement

FlatElement() =default

function FlatElement

inline FlatElement(
    TimeFrameIndex t,
    float v
)

function time

inline TimeFrameIndex time() const

Get the time of this element (for TimeSeriesElement concept).

Return: TimeFrameIndex The element timestamp

function value

inline float value() const

Get the value of this element (for ValueElement concept).

Return: float The element value

Public Attributes Documentation

variable _time

TimeFrameIndex _time {TimeFrameIndex(0)};

variable _value

float _value {0.0f};

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