Skip to main content

EventWithId

EventWithId

Structure to hold a digital event with its associated EntityID. More…

#include <EventWithId.hpp>

Public Functions

Name
EventWithId(TimeFrameIndex time, EntityId id)
TimeFrameIndex time() const
Get the time of this event.
EntityId id() const
Get the EntityId of this event.
TimeFrameIndex value() const
Get the value of this event (for events, the time IS the value).

Public Attributes

Name
TimeFrameIndex event_time
EntityId entity_id

Detailed Description

struct EventWithId;

Structure to hold a digital event with its associated EntityID.

See: TimeSeriesConcepts.hpp for concept definitions

Represents a single timestamped event in a DigitalEventSeries. Satisfies the TimeSeriesElement and EntityElement concepts.

Public Functions Documentation

function EventWithId

inline EventWithId(
    TimeFrameIndex time,
    EntityId id
)

function time

inline TimeFrameIndex time() const

Get the time of this event.

Return: TimeFrameIndex The event timestamp

function id

inline EntityId id() const

Get the EntityId of this event.

Return: EntityId The entity identifier

function value

inline TimeFrameIndex value() const

Get the value of this event (for events, the time IS the value).

Return: TimeFrameIndex The event timestamp

Public Attributes Documentation

variable event_time

TimeFrameIndex event_time;

variable entity_id

EntityId entity_id;

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