Skip to main content

RaggedTimeSeries::RaggedElement

RaggedTimeSeries::RaggedElement

Element type for flattened iteration over ragged time series. More…

#include <RaggedTimeSeries.hpp>

Public Functions

Name
RaggedElement(TimeFrameIndex t, TData const & data, EntityId eid)
TimeFrameIndex time() const
Get the time of this element.
EntityId id() const
Get the EntityId of this element.
TData const & data() const
Get the data of this element.
TData const & value() const
Alias for data() - satisfies ValueElement concept.
EntityId entity_id() const
Get the entity_id (legacy accessor).

Public Attributes

Name
TimeFrameIndex _time
TData const * _data_ptr
EntityId _entity_id

Detailed Description

struct RaggedTimeSeries::RaggedElement;

Element type for flattened iteration over ragged time series.

See: TimeSeriesConcepts.hpp for concept definitions

This struct combines time, data, and entity_id into a single element that satisfies the TimeSeriesElement and EntityElement concepts. Used by the [elements()](/api_generated/Classes/classRaggedTimeSeries.md#function-elements) method for concept-compliant iteration.

Public Functions Documentation

function RaggedElement

inline RaggedElement(
    TimeFrameIndex t,
    TData const & data,
    EntityId eid
)

function time

inline TimeFrameIndex time() const

Get the time of this element.

Return: TimeFrameIndex The element timestamp

function id

inline EntityId id() const

Get the EntityId of this element.

Return: EntityId The entity identifier

function data

inline TData const & data() const

Get the data of this element.

Return: TData const& Reference to the element data

function value

inline TData const & value() const

Alias for data() - satisfies ValueElement concept.

Return: TData const& Reference to the element data

function entity_id

inline EntityId entity_id() const

Get the entity_id (legacy accessor).

Return: EntityId The entity identifier

Public Attributes Documentation

variable _time

TimeFrameIndex _time;

variable _data_ptr

TData const  * _data_ptr;

variable _entity_id

EntityId _entity_id;

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