CatapultServer
v0.5.0.1 (Elephant)
|
Iterator adapter, allowing existence check on keys and data retrieval. More...
Classes | |
struct | Impl |
Public Member Functions | |
RdbDataIterator () | |
Creates an iterator. More... | |
~RdbDataIterator () | |
Destroys an iterator. More... | |
RdbDataIterator (RdbDataIterator &&) | |
Move constructor. More... | |
RdbDataIterator & | operator= (RdbDataIterator &&) |
Move assignment operator. More... | |
bool | operator== (const RdbDataIterator &rhs) const |
Returns true if this iterator and rhs are equal. More... | |
bool | operator!= (const RdbDataIterator &rhs) const |
Returns true if this iterator and rhs are not equal. More... | |
rocksdb::PinnableSlice & | storage () const |
Returns storage associated with iterator. More... | |
void | setFound (bool found) |
Sets flag to found indicating that iterator contains data. More... | |
RawBuffer | buffer () const |
Returns storage as raw buffer. More... | |
Static Public Member Functions | |
static RdbDataIterator | End () |
Iterator representing no match. More... | |
Private Types | |
enum | StorageStrategy { StorageStrategy::Allocate, StorageStrategy::Do_Not_Allocate } |
Private Member Functions | |
RdbDataIterator (StorageStrategy storageStrategy) | |
Private Attributes | |
std::shared_ptr< Impl > | m_pImpl |
bool | m_isFound |
Iterator adapter, allowing existence check on keys and data retrieval.
|
strongprivate |
|
explicitprivate |
catapult::cache::RdbDataIterator::RdbDataIterator | ( | ) |
Creates an iterator.
|
default |
Destroys an iterator.
|
default |
Move constructor.
RawBuffer catapult::cache::RdbDataIterator::buffer | ( | ) | const |
Returns storage as raw buffer.
|
static |
Iterator representing no match.
bool catapult::cache::RdbDataIterator::operator!= | ( | const RdbDataIterator & | rhs | ) | const |
Returns true
if this iterator and rhs are not equal.
|
default |
Move assignment operator.
bool catapult::cache::RdbDataIterator::operator== | ( | const RdbDataIterator & | rhs | ) | const |
Returns true
if this iterator and rhs are equal.
void catapult::cache::RdbDataIterator::setFound | ( | bool | found | ) |
Sets flag to found indicating that iterator contains data.
rocksdb::PinnableSlice & catapult::cache::RdbDataIterator::storage | ( | ) | const |
Returns storage associated with iterator.
|
private |
|
private |