CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::RdbDataIterator Class Reference

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...
 
RdbDataIteratoroperator= (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< Implm_pImpl
 
bool m_isFound
 

Detailed Description

Iterator adapter, allowing existence check on keys and data retrieval.

Member Enumeration Documentation

◆ StorageStrategy

Enumerator
Allocate 
Do_Not_Allocate 

Constructor & Destructor Documentation

◆ RdbDataIterator() [1/3]

catapult::cache::RdbDataIterator::RdbDataIterator ( StorageStrategy  storageStrategy)
explicitprivate

◆ RdbDataIterator() [2/3]

catapult::cache::RdbDataIterator::RdbDataIterator ( )

Creates an iterator.

Here is the caller graph for this function:

◆ ~RdbDataIterator()

catapult::cache::RdbDataIterator::~RdbDataIterator ( )
default

Destroys an iterator.

◆ RdbDataIterator() [3/3]

catapult::cache::RdbDataIterator::RdbDataIterator ( RdbDataIterator &&  )
default

Move constructor.

Member Function Documentation

◆ buffer()

RawBuffer catapult::cache::RdbDataIterator::buffer ( ) const

Returns storage as raw buffer.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ End()

RdbDataIterator catapult::cache::RdbDataIterator::End ( )
static

Iterator representing no match.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!=()

bool catapult::cache::RdbDataIterator::operator!= ( const RdbDataIterator rhs) const

Returns true if this iterator and rhs are not equal.

◆ operator=()

RdbDataIterator & catapult::cache::RdbDataIterator::operator= ( RdbDataIterator &&  )
default

Move assignment operator.

◆ operator==()

bool catapult::cache::RdbDataIterator::operator== ( const RdbDataIterator rhs) const

Returns true if this iterator and rhs are equal.

◆ setFound()

void catapult::cache::RdbDataIterator::setFound ( bool  found)

Sets flag to found indicating that iterator contains data.

Here is the caller graph for this function:

◆ storage()

rocksdb::PinnableSlice & catapult::cache::RdbDataIterator::storage ( ) const

Returns storage associated with iterator.

Here is the caller graph for this function:

Member Data Documentation

◆ m_isFound

bool catapult::cache::RdbDataIterator::m_isFound
private

◆ m_pImpl

std::shared_ptr<Impl> catapult::cache::RdbDataIterator::m_pImpl
private

The documentation for this class was generated from the following files: