Skip to main content

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 && 
) =default

function operator=

RaggedAnalogStorageWrapper & operator=(
    RaggedAnalogStorageWrapper && 
) =default

function RaggedAnalogStorageWrapper

RaggedAnalogStorageWrapper(
    RaggedAnalogStorageWrapper const & 
) =delete

function operator=

RaggedAnalogStorageWrapper & operator=(
    RaggedAnalogStorageWrapper const & 
) =delete

function size

inline size_t size() const

function empty

inline bool empty() const

function getTime

inline TimeFrameIndex getTime(
    size_t idx
) const

function getValue

inline float getValue(
    size_t idx
) const

function getTimeRange

inline std::pair< size_t, size_t > getTimeRange(
    TimeFrameIndex time
) const

function getTimeCount

inline size_t getTimeCount() const

function hasDataAtTime

inline bool hasDataAtTime(
    TimeFrameIndex time
) const

function getValuesAtTime

inline std::span< float const > getValuesAtTime(
    TimeFrameIndex time
) const

function getStorageType

inline RaggedAnalogStorageType getStorageType() const

function isView

inline bool isView() const

function isLazy

inline bool isLazy() const

function tryGetCache

inline RaggedAnalogStorageCache tryGetCache() const

function 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() const

Get the time ranges map (owning storage only).

function tryGet

template <typename StorageType >
inline StorageType * tryGet()

function tryGet

template <typename StorageType >
inline StorageType const * tryGet() const

Updated on 2026-11-13 at 20:25:40 +0000