DigitalIntervalStorageWrapper::StorageModel
DigitalIntervalStorageWrapper::StorageModel
Inherits from DigitalIntervalStorageWrapper::StorageConcept
Public Functions
| Name | |
|---|---|
| StorageModel(StorageImpl storage) | |
| size_t | size() const override |
| TimeFrameInterval const & | getInterval(size_t idx) const override |
| EntityId | getEntityId(size_t idx) const override |
| std::optional< size_t > | findByInterval(TimeFrameInterval const & interval) const override |
| std::optional< size_t > | findByEntityId(EntityId id) const override |
| bool | hasIntervalAtTime(TimeFrameIndex time) const override |
| std::pair< size_t, size_t > | getOverlappingRange(TimeFrameIndex start, TimeFrameIndex end) const override |
| std::pair< size_t, size_t > | getContainedRange(TimeFrameIndex start, TimeFrameIndex end) const override |
| DigitalIntervalStorageType | getStorageType() const override |
| DigitalIntervalStorageCache | tryGetCache() const override |
| bool | addInterval(TimeFrameInterval const & interval, EntityId entity_id) override |
| bool | removeInterval(TimeFrameInterval const & interval) override |
| bool | removeByEntityId(EntityId id) override |
| void | reserve(size_t capacity) override |
| void | clear() override |
| void | setEntityIds(std::vector< EntityId > ids) override |
Public Attributes
| Name | |
|---|---|
| StorageImpl | _storage |
Detailed Description
template <typename StorageImpl >
struct DigitalIntervalStorageWrapper::StorageModel;Public Functions Documentation
function StorageModel
inline explicit StorageModel(
StorageImpl storage
)function size
inline size_t size() const overridefunction getInterval
inline TimeFrameInterval const & getInterval(
size_t idx
) const overridefunction getEntityId
inline EntityId getEntityId(
size_t idx
) const overridefunction findByInterval
inline std::optional< size_t > findByInterval(
TimeFrameInterval const & interval
) const overridefunction findByEntityId
inline std::optional< size_t > findByEntityId(
EntityId id
) const overridefunction hasIntervalAtTime
inline bool hasIntervalAtTime(
TimeFrameIndex time
) const overridefunction getOverlappingRange
inline std::pair< size_t, size_t > getOverlappingRange(
TimeFrameIndex start,
TimeFrameIndex end
) const overridefunction getContainedRange
inline std::pair< size_t, size_t > getContainedRange(
TimeFrameIndex start,
TimeFrameIndex end
) const overridefunction getStorageType
inline DigitalIntervalStorageType getStorageType() const overridefunction tryGetCache
inline DigitalIntervalStorageCache tryGetCache() const overridefunction addInterval
inline bool addInterval(
TimeFrameInterval const & interval,
EntityId entity_id
) overridefunction removeInterval
inline bool removeInterval(
TimeFrameInterval const & interval
) overridefunction removeByEntityId
inline bool removeByEntityId(
EntityId id
) overridefunction reserve
inline void reserve(
size_t capacity
) overridefunction clear
inline void clear() overridefunction setEntityIds
inline void setEntityIds(
std::vector< EntityId > ids
) overridePublic Attributes Documentation
variable _storage
StorageImpl _storage;Updated on 2026-11-13 at 20:25:41 +0000