Skip to main content

IntervalWithId

IntervalWithId

Structure to hold an interval with its associated EntityID. More…

#include <IntervalWithId.hpp>

Public Functions

Name
IntervalWithId(TimeFrameInterval const & interval_data, EntityId id)
TimeFrameIndex time() const
Get the time of this interval (returns start time).
EntityId id() const
Get the EntityId of this interval.
TimeFrameInterval const & value() const
Get the value of this interval (the Interval itself).

Public Attributes

Name
TimeFrameInterval interval
EntityId entity_id

Detailed Description

struct IntervalWithId;

Structure to hold an interval with its associated EntityID.

See: TimeSeriesConcepts.hpp for concept definitions

Represents a single time interval in a DigitalIntervalSeries. Satisfies the TimeSeriesElement and EntityElement concepts.

Note: The .[time()](/api_generated/Classes/structIntervalWithId.md#function-time) accessor returns the start time of the interval, which is the canonical time point for this element. Use .[value()](/api_generated/Classes/structIntervalWithId.md#function-value) or .[interval](/api_generated/Classes/structIntervalWithId.md#variable-interval) to access the full interval data.

Public Functions Documentation

function IntervalWithId

inline IntervalWithId(
    TimeFrameInterval const & interval_data,
    EntityId id
)

function time

inline TimeFrameIndex time() const

Get the time of this interval (returns start time).

Return: TimeFrameIndex The interval start time

function id

inline EntityId id() const

Get the EntityId of this interval.

Return: EntityId The entity identifier

function value

inline TimeFrameInterval const & value() const

Get the value of this interval (the Interval itself).

Return: Interval const& The interval data

Public Attributes Documentation

variable interval

TimeFrameInterval interval;

variable entity_id

EntityId entity_id;

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