Neuralyzer::Concepts
Neuralyzer::Concepts
Classes
| Name | |
|---|---|
| struct | Neuralyzer::Concepts::is_time_series_element Type trait to check if a type satisfies [TimeSeriesElement]. |
| struct | Neuralyzer::Concepts::is_entity_element Type trait to check if a type satisfies [EntityElement]. |
Functions
| Name | |
|---|---|
| template <TimeSeriesElement T> TimeFrameIndex |
getTime(T const & elem) Extract time from any time series element. |
| template <EntityElement T> EntityId |
getEntityId(T const & elem) Extract EntityId from any entity-bearing element. |
| template <TimeSeriesElement T> bool |
isInTimeRange(T const & elem, TimeFrameIndex start, TimeFrameIndex end) Check if an element’s time is within a range. |
| template <ClockTimeSeriesElement T> bool |
isInClockTimeRange(T const & elem, ClockTicks start, ClockTicks end) Check if a clock-tick element’s time is within a range. |
| template <EntityIdElement T> bool |
isInEntitySet(T const & elem, std::unordered_set< EntityId > const & ids) Check if an element’s EntityId is in a set. |
Attributes
| Name | |
|---|---|
| bool | is_time_series_element_v |
| bool | is_entity_element_v |
Functions Documentation
function getTime
template <TimeSeriesElement T>
TimeFrameIndex getTime(
T const & elem
)Extract time from any time series element.
Parameters:
- elem The element to extract time from
Template Parameters:
- T Element type satisfying [TimeSeriesElement]
Return: TimeFrameIndex The time value
function getEntityId
template <EntityElement T>
EntityId getEntityId(
T const & elem
)Extract EntityId from any entity-bearing element.
Parameters:
- elem The element to extract EntityId from
Template Parameters:
- T Element type satisfying [EntityElement]
Return: EntityId The entity identifier
function isInTimeRange
template <TimeSeriesElement T>
bool isInTimeRange(
T const & elem,
TimeFrameIndex start,
TimeFrameIndex end
)Check if an element’s time is within a range.
Parameters:
- elem The element to check
- start Start of time range (inclusive)
- end End of time range (inclusive)
Template Parameters:
- T Element type satisfying [TimeSeriesElement]
Return: true if element’s time is within [start, end]
function isInClockTimeRange
template <ClockTimeSeriesElement T>
bool isInClockTimeRange(
T const & elem,
ClockTicks start,
ClockTicks end
)Check if a clock-tick element’s time is within a range.
function isInEntitySet
template <EntityIdElement T>
bool isInEntitySet(
T const & elem,
std::unordered_set< EntityId > const & ids
)Check if an element’s EntityId is in a set.
Parameters:
- elem The element to check
- ids Set of EntityIds to check against
Template Parameters:
- T Element type satisfying [EntityElement]
Return: true if element’s EntityId is in the set
Attributes Documentation
variable is_time_series_element_v
bool is_time_series_element_v = is_time_series_element<T>::value;variable is_entity_element_v
bool is_entity_element_v = is_entity_element<T>::value;Updated on 2026-11-13 at 20:25:41 +0000