RaggedAnalogStorageWrapper
RaggedAnalogStorageWrapper
Type-erased storage wrapper for ragged analog storage. More…
#include <RaggedAnalogStorage.hpp>
Public Functions
| Name | |
|---|---|
| template <typename StorageImpl > |
RaggedAnalogStorageWrapper(StorageImpl storage) Construct wrapper from any storage implementation. |
| RaggedAnalogStorageWrapper() | |
| RaggedAnalogStorageWrapper(RaggedAnalogStorageWrapper && ) =default | |
| RaggedAnalogStorageWrapper & | operator=(RaggedAnalogStorageWrapper && ) =default |
| RaggedAnalogStorageWrapper(RaggedAnalogStorageWrapper const & ) =delete | |
| RaggedAnalogStorageWrapper & | operator=(RaggedAnalogStorageWrapper const & ) =delete |
| size_t | size() const |
| bool | empty() const |
| TimeFrameIndex | getTime(size_t idx) const |
| float | getValue(size_t idx) const |
| std::pair< size_t, size_t > | getTimeRange(TimeFrameIndex time) const |
| size_t | getTimeCount() const |
| bool | hasDataAtTime(TimeFrameIndex time) const |
| std::span< float const > | getValuesAtTime(TimeFrameIndex time) const |
| RaggedAnalogStorageType | getStorageType() const |
| bool | isView() const |
| bool | isLazy() const |
| RaggedAnalogStorageCache | tryGetCache() const |
| void | append(TimeFrameIndex time, float value) |
| void | appendBatch(TimeFrameIndex time, std::vector< float > const & values) |
| void | appendBatch(TimeFrameIndex time, std::vector< float > && values) |
| void | setAtTime(TimeFrameIndex time, std::vector< float > const & values) |
| size_t | removeAtTime(TimeFrameIndex time) |
| void | reserve(size_t capacity) |
| void | clear() |
| std::map< TimeFrameIndex, std::pair< size_t, size_t > > const & | timeRanges() const Get the time ranges map (owning storage only). |
| template <typename StorageType > StorageType * |
tryGet() |
| template <typename StorageType > StorageType const * |
tryGet() const |
Detailed Description
class RaggedAnalogStorageWrapper;Type-erased storage wrapper for ragged analog storage.
Provides a uniform interface for any storage backend while hiding the concrete storage type. Supports lazy transforms with unbounded ViewType.
Public Functions Documentation
function RaggedAnalogStorageWrapper
template <typename StorageImpl >
inline explicit RaggedAnalogStorageWrapper(
StorageImpl storage
)Construct wrapper from any storage implementation.
function RaggedAnalogStorageWrapper
inline RaggedAnalogStorageWrapper()function RaggedAnalogStorageWrapper
RaggedAnalogStorageWrapper(
RaggedAnalogStorageWrapper &&
) =defaultfunction operator=
RaggedAnalogStorageWrapper & operator=(
RaggedAnalogStorageWrapper &&
) =defaultfunction RaggedAnalogStorageWrapper
RaggedAnalogStorageWrapper(
RaggedAnalogStorageWrapper const &
) =deletefunction operator=
RaggedAnalogStorageWrapper & operator=(
RaggedAnalogStorageWrapper const &
) =deletefunction size
inline size_t size() constfunction empty
inline bool empty() constfunction getTime
inline TimeFrameIndex getTime(
size_t idx
) constfunction getValue
inline float getValue(
size_t idx
) constfunction getTimeRange
inline std::pair< size_t, size_t > getTimeRange(
TimeFrameIndex time
) constfunction getTimeCount
inline size_t getTimeCount() constfunction hasDataAtTime
inline bool hasDataAtTime(
TimeFrameIndex time
) constfunction getValuesAtTime
inline std::span< float const > getValuesAtTime(
TimeFrameIndex time
) constfunction getStorageType
inline RaggedAnalogStorageType getStorageType() constfunction isView
inline bool isView() constfunction isLazy
inline bool isLazy() constfunction tryGetCache
inline RaggedAnalogStorageCache tryGetCache() constfunction append
inline void append(
TimeFrameIndex time,
float value
)function appendBatch
inline void appendBatch(
TimeFrameIndex time,
std::vector< float > const & values
)function appendBatch
inline void appendBatch(
TimeFrameIndex time,
std::vector< float > && values
)function setAtTime
inline void setAtTime(
TimeFrameIndex time,
std::vector< float > const & values
)function removeAtTime
inline size_t removeAtTime(
TimeFrameIndex time
)function reserve
inline void reserve(
size_t capacity
)function clear
inline void clear()function timeRanges
inline std::map< TimeFrameIndex, std::pair< size_t, size_t > > const & timeRanges() constGet the time ranges map (owning storage only).
function tryGet
template <typename StorageType >
inline StorageType * tryGet()function tryGet
template <typename StorageType >
inline StorageType const * tryGet() constUpdated on 2026-11-13 at 20:25:40 +0000