Ethereum  PoC-8
The C++ Implementation of Ethereum
dev::eth::SizedBlockMap< KeyType > Class Template Reference

#include <BlockQueue.h>

Public Member Functions

std::size_t count () const
 
std::size_t size () const
 
bool isEmpty () const
 
KeyType firstKey () const
 
void clear ()
 
void insert (KeyType const &_key, h256 const &_hash, bytes &&_blockData)
 
std::vector< std::pair< h256, bytes > > removeByKeyEqual (KeyType const &_key)
 
std::vector< std::pair< h256, bytes > > removeByKeyNotGreater (KeyType const &_key)
 

Detailed Description

template<class KeyType>
class dev::eth::SizedBlockMap< KeyType >

Definition at line 156 of file BlockQueue.h.

Member Function Documentation

◆ clear()

template<class KeyType >
void dev::eth::SizedBlockMap< KeyType >::clear ( )
inline

Definition at line 167 of file BlockQueue.h.

◆ count()

template<class KeyType >
std::size_t dev::eth::SizedBlockMap< KeyType >::count ( ) const
inline

Definition at line 159 of file BlockQueue.h.

◆ firstKey()

template<class KeyType >
KeyType dev::eth::SizedBlockMap< KeyType >::firstKey ( ) const
inline

Definition at line 165 of file BlockQueue.h.

◆ insert()

template<class KeyType >
void dev::eth::SizedBlockMap< KeyType >::insert ( KeyType const &  _key,
h256 const &  _hash,
bytes &&  _blockData 
)
inline

Definition at line 173 of file BlockQueue.h.

◆ isEmpty()

template<class KeyType >
bool dev::eth::SizedBlockMap< KeyType >::isEmpty ( ) const
inline

Definition at line 163 of file BlockQueue.h.

◆ removeByKeyEqual()

template<class KeyType >
std::vector<std::pair<h256, bytes> > dev::eth::SizedBlockMap< KeyType >::removeByKeyEqual ( KeyType const &  _key)
inline

Definition at line 182 of file BlockQueue.h.

◆ removeByKeyNotGreater()

template<class KeyType >
std::vector<std::pair<h256, bytes> > dev::eth::SizedBlockMap< KeyType >::removeByKeyNotGreater ( KeyType const &  _key)
inline

Definition at line 189 of file BlockQueue.h.

◆ size()

template<class KeyType >
std::size_t dev::eth::SizedBlockMap< KeyType >::size ( ) const
inline

Definition at line 161 of file BlockQueue.h.


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