CellStore class
#include <CellStore.h>
A memory-mapped read-only store of CellData, indexed by ID.
Contents
Constructors, destructors, conversion operators
- CellStore() defaulted
- Constructor.
- ~CellStore()
Public functions
- void load(const std::string& base_path, size_t cache_size_bytes = 10*1024*1024)
- Load cell data and index from the specified base path.
- auto get(uint64_t id) const -> const Cell &
- auto get_at_index(size_t idx) const -> const Cell &
- auto size() const -> size_t
Function documentation
void CellStore:: load(const std::string& base_path,
size_t cache_size_bytes = 10*1024*1024)
Load cell data and index from the specified base path.
| Parameters | |
|---|---|
| base_path | The base path for the data and index files |
| cache_size_bytes | Cache size in bytes (default 10MB) |