Skip to main content

AnalogTimeSeries::TimeValuePoint

AnalogTimeSeries::TimeValuePoint

Data structure representing a single time-value point. More…

#include <Analog_Time_Series.hpp>

Public Functions

Name
TimeValuePoint() =default
TimeValuePoint(TimeFrameIndex time_idx, float val)
TimeFrameIndex time() const
Get the time of this sample (for TimeSeriesElement concept).
float value() const
Get the value of this sample (for ValueElement concept).

Public Attributes

Name
TimeFrameIndex time_frame_index
float _value

Detailed Description

struct AnalogTimeSeries::TimeValuePoint;

Data structure representing a single time-value point.

See: TimeSeriesConcepts.hpp for concept definitions

Represents a single sample in an AnalogTimeSeries. Satisfies the TimeSeriesElement and ValueElement concepts. Does NOT satisfy EntityElement (AnalogTimeSeries has no EntityIds).

Public Functions Documentation

function TimeValuePoint

TimeValuePoint() =default

function TimeValuePoint

inline TimeValuePoint(
    TimeFrameIndex time_idx,
    float val
)

function time

inline TimeFrameIndex time() const

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

Return: TimeFrameIndex The sample timestamp

function value

inline float value() const

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

Return: float The sample value

Public Attributes Documentation

variable time_frame_index

TimeFrameIndex time_frame_index {TimeFrameIndex(0)};

variable _value

float _value {0.0f};

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