libspatialindex API Reference
(git-trunk)
|
#include <Buffer.h>
Classes | |
class | Entry |
Public Member Functions | |
Buffer (IStorageManager &sm, Tools::PropertySet &ps) | |
~Buffer () override | |
void | flush () override |
void | loadByteArray (const id_type page, uint32_t &len, uint8_t **data) override |
void | storeByteArray (id_type &page, const uint32_t len, const uint8_t *const data) override |
void | deleteByteArray (const id_type page) override |
void | clear () override |
uint64_t | getHits () override |
Public Member Functions inherited from SpatialIndex::StorageManager::IBuffer | |
~IBuffer () override=default | |
Public Member Functions inherited from SpatialIndex::IStorageManager | |
virtual | ~IStorageManager ()=default |
Protected Member Functions | |
virtual void | addEntry (id_type page, Entry *pEntry)=0 |
virtual void | removeEntry ()=0 |
Protected Attributes | |
uint32_t | m_capacity |
bool | m_bWriteThrough |
IStorageManager * | m_pStorageManager |
std::map< id_type, Entry * > | m_buffer |
uint64_t | m_u64Hits |
Buffer::Buffer | ( | IStorageManager & | sm, |
Tools::PropertySet & | ps | ||
) |
Definition at line 33 of file Buffer.cc.
References Tools::Variant::blVal, Tools::PropertySet::getProperty(), m_bWriteThrough, m_capacity, Tools::Variant::m_val, Tools::Variant::m_varType, Tools::Variant::ulVal, Tools::VT_BOOL, Tools::VT_EMPTY, and Tools::VT_ULONG.
|
override |
|
protectedpure virtual |
Implemented in SpatialIndex::StorageManager::RandomEvictionsBuffer.
Referenced by loadByteArray(), and storeByteArray().
|
overridevirtual |
Implements SpatialIndex::StorageManager::IBuffer.
Definition at line 134 of file Buffer.cc.
References m_buffer, m_pStorageManager, m_u64Hits, and SpatialIndex::IStorageManager::storeByteArray().
|
overridevirtual |
Implements SpatialIndex::IStorageManager.
Definition at line 122 of file Buffer.cc.
References SpatialIndex::IStorageManager::deleteByteArray(), m_buffer, and m_pStorageManager.
|
overridevirtual |
Implements SpatialIndex::IStorageManager.
Definition at line 59 of file Buffer.cc.
References m_buffer, m_pStorageManager, and SpatialIndex::IStorageManager::storeByteArray().
Referenced by ~Buffer().
|
overridevirtual |
Implements SpatialIndex::StorageManager::IBuffer.
Definition at line 151 of file Buffer.cc.
References m_u64Hits.
|
overridevirtual |
Implements SpatialIndex::IStorageManager.
Definition at line 72 of file Buffer.cc.
References addEntry(), SpatialIndex::IStorageManager::loadByteArray(), m_buffer, m_pStorageManager, and m_u64Hits.
|
protectedpure virtual |
Implemented in SpatialIndex::StorageManager::RandomEvictionsBuffer.
|
overridevirtual |
Implements SpatialIndex::IStorageManager.
Definition at line 90 of file Buffer.cc.
References addEntry(), SpatialIndex::StorageManager::Buffer::Entry::m_bDirty, m_buffer, m_bWriteThrough, m_pStorageManager, m_u64Hits, SpatialIndex::StorageManager::NewPage, and SpatialIndex::IStorageManager::storeByteArray().
Definition at line 81 of file Buffer.h.
Referenced by SpatialIndex::StorageManager::RandomEvictionsBuffer::addEntry(), clear(), deleteByteArray(), flush(), loadByteArray(), SpatialIndex::StorageManager::RandomEvictionsBuffer::removeEntry(), and storeByteArray().
|
protected |
Definition at line 79 of file Buffer.h.
Referenced by Buffer(), and storeByteArray().
|
protected |
Definition at line 78 of file Buffer.h.
Referenced by SpatialIndex::StorageManager::RandomEvictionsBuffer::addEntry(), and Buffer().
|
protected |
Definition at line 80 of file Buffer.h.
Referenced by clear(), deleteByteArray(), flush(), loadByteArray(), SpatialIndex::StorageManager::RandomEvictionsBuffer::removeEntry(), and storeByteArray().
|
protected |
Definition at line 82 of file Buffer.h.
Referenced by clear(), getHits(), loadByteArray(), and storeByteArray().