DigitalIntervalStorageCache
DigitalIntervalStorageCache
Cache structure for fast-path access to contiguous digital interval storage. More…
#include <DigitalIntervalStorageCache.hpp>
Public Functions
| Name | |
|---|---|
| bool | isValid() const Check if the cache is valid for fast-path access. |
| TimeFrameInterval const & | getInterval(size_t idx) const |
| EntityId | getEntityId(size_t idx) const |
Public Attributes
| Name | |
|---|---|
| TimeFrameInterval const * | intervals_ptr |
| EntityId const * | entity_ids_ptr |
| size_t | cache_size |
| bool | is_contiguous True if storage is contiguous (owning). |
Detailed Description
struct DigitalIntervalStorageCache;Cache structure for fast-path access to contiguous digital interval storage.
Note: Digital intervals are always sorted by start time.
Digital intervals store Interval values (start/end times) with associated EntityIds. The storage is organized as parallel arrays:
Public Functions Documentation
function isValid
inline bool isValid() constCheck if the cache is valid for fast-path access.
Return:
- true if storage is contiguous (can use direct pointer access)
- false if storage is non-contiguous (must use virtual dispatch)
function getInterval
inline TimeFrameInterval const & getInterval(
size_t idx
) constfunction getEntityId
inline EntityId getEntityId(
size_t idx
) constPublic Attributes Documentation
variable intervals_ptr
TimeFrameInterval const * intervals_ptr = nullptr;variable entity_ids_ptr
EntityId const * entity_ids_ptr = nullptr;variable cache_size
size_t cache_size = 0;variable is_contiguous
bool is_contiguous = false;True if storage is contiguous (owning).
Updated on 2026-11-13 at 20:25:39 +0000