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() =defaultfunction getValueAtImpl
inline float getValueAtImpl(
std::size_t index
) constfunction sizeImpl
inline std::size_t sizeImpl() constfunction getSpanImpl
inline std::span< float const > getSpanImpl() constfunction getSpanRangeImpl
inline std::span< float const > getSpanRangeImpl(
std::size_t start,
std::size_t end
) constfunction isContiguousImpl
inline bool isContiguousImpl() constfunction getStorageTypeImpl
inline AnalogStorageType getStorageTypeImpl() constfunction tryGetCacheImpl
inline AnalogDataStorageCache tryGetCacheImpl() constfunction cache
inline std::shared_ptr< SharedMmapBlockCache const > const & cache() constfunction channel
inline std::size_t channel() constUpdated on 2026-11-13 at 20:25:41 +0000