RelativeOwningDigitalEventStorage
RelativeOwningDigitalEventStorage
Immutable owning storage backend for DigitalEventSeries that stores trial-relative event times as ClockTicks without an associated TimeFrame.
Construction
Series are created exclusively via DigitalEventSeries::createFromRelativeClockTicks(). The storage sorts and deduplicates events on construction. Optional EntityId vectors may be supplied; otherwise entity IDs default to zero.
Properties
- Time domain:
DigitalEventTimeDomain::RelativeClockTicks - Storage type:
DigitalEventStorageType::RelativeOwning - Mutation: Not supported (no
addEvent,removeEvent, orclear) - Views:
createView()is not supported in v1 (getSharedOwningStorage()returnsnullptr) - Iteration:
DigitalEventSeries::view()returns storedClockTicksdirectly; noTimeFrameis required
Lookup
findByRelativeTime(ClockTicks)— O(log n) binary searchgetRelativeTimeRange(ClockTicks, ClockTicks)— index range for inclusive relative bounds- Absolute-time APIs (
getEvent,findByTime,getTimeRange) throwstd::runtime_error
See Also
- Storage Backend Architecture
Digital_Event_Series.hpp—createFromRelativeClockTicks(),viewInRelativeRange()