Skip to main content

BlockCachedMmapAnalogStorage

BlockCachedMmapAnalogStorage

Analog storage backend for one channel of a block-cached mmap file. More…

#include <BlockCachedMmapAnalogStorage.hpp>

Inherits from AnalogDataStorageBase< BlockCachedMmapAnalogStorage >

Public Functions

Name
BlockCachedMmapAnalogStorage(std::shared_ptr< SharedMmapBlockCache const > cache, std::size_t channel)
Construct storage for a specific channel.
~BlockCachedMmapAnalogStorage() =default
float getValueAtImpl(std::size_t index) const
std::size_t sizeImpl() const
std::span< float const > getSpanImpl() const
std::span< float const > getSpanRangeImpl(std::size_t start, std::size_t end) const
bool isContiguousImpl() const
AnalogStorageType getStorageTypeImpl() const
AnalogDataStorageCache tryGetCacheImpl() const
std::shared_ptr< SharedMmapBlockCache const > const & cache() const
std::size_t channel() const

Additional inherited members

Public Functions inherited from AnalogDataStorageBase< BlockCachedMmapAnalogStorage >

Name
std::size_t size() const
Get the number of samples in storage.
bool empty() const
Check if storage is empty.
float getValueAt(std::size_t index) const
Get the value at a specific index.
std::span< float const > getSpan() const
Get a span over all data (if contiguous).
std::span< float const > getSpanRange(std::size_t start, std::size_t end) const
Get a span over a sub-range of data (if contiguous).
bool isContiguous() const
Check if data is stored contiguously in memory.
AnalogStorageType getStorageType() const
Get the storage type identifier.
bool isView() const
Check if this storage is a view (non-owning).
bool isLazy() const
Check if this storage is lazy-evaluated.
AnalogDataStorageCache tryGetCache() const
Try to get a cache for fast-path contiguous access.

Protected Functions inherited from AnalogDataStorageBase< BlockCachedMmapAnalogStorage >

Name
~AnalogDataStorageBase() =default

Detailed Description

class BlockCachedMmapAnalogStorage;

Analog storage backend for one channel of a block-cached mmap file.

Precondition:

  • cache != nullptr
  • channel < cache->numChannels()

Holds shared ownership of the SharedMmapBlockCache. Element access goes through the cache’s block loading mechanism. Span access is available when the requested range falls within a single cached block.

Public Functions Documentation

function BlockCachedMmapAnalogStorage

inline BlockCachedMmapAnalogStorage(
    std::shared_ptr< SharedMmapBlockCache const > cache,
    std::size_t channel
)

Construct storage for a specific channel.

Parameters:

  • cache Shared pointer to the block cache (non-null).
  • channel The channel index this storage represents.

function ~BlockCachedMmapAnalogStorage

~BlockCachedMmapAnalogStorage() =default

function getValueAtImpl

inline float getValueAtImpl(
    std::size_t index
) const

function sizeImpl

inline std::size_t sizeImpl() const

function getSpanImpl

inline std::span< float const > getSpanImpl() const

function getSpanRangeImpl

inline std::span< float const > getSpanRangeImpl(
    std::size_t start,
    std::size_t end
) const

function isContiguousImpl

inline bool isContiguousImpl() const

function getStorageTypeImpl

inline AnalogStorageType getStorageTypeImpl() const

function tryGetCacheImpl

inline AnalogDataStorageCache tryGetCacheImpl() const

function cache

inline std::shared_ptr< SharedMmapBlockCache const > const & cache() const

function channel

inline std::size_t channel() const

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