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

#include <BlockQueue.h>

Public Member Functions

std::size_t count () const
 
std::size_t size () const
 
bool isEmpty () const
 
h256 nextHash () const
 
T const & next () const
 
void clear ()
 
void enqueue (T &&_t)
 
dequeue ()
 
std::vector< T > dequeueMultiple (std::size_t _n)
 
bool remove (h256 const &_hash)
 
template<class Pred >
std::vector< T > removeIf (Pred _pred)
 
bool replace (h256 const &_hash, T &&_t)
 

Detailed Description

template<class T>
class dev::eth::SizedBlockQueue< T >

Definition at line 66 of file BlockQueue.h.

Member Function Documentation

◆ clear()

template<class T >
void dev::eth::SizedBlockQueue< T >::clear ( )
inline

Definition at line 79 of file BlockQueue.h.

◆ count()

template<class T >
std::size_t dev::eth::SizedBlockQueue< T >::count ( ) const
inline

Definition at line 69 of file BlockQueue.h.

◆ dequeue()

template<class T >
T dev::eth::SizedBlockQueue< T >::dequeue ( )
inline

Definition at line 91 of file BlockQueue.h.

◆ dequeueMultiple()

template<class T >
std::vector<T> dev::eth::SizedBlockQueue< T >::dequeueMultiple ( std::size_t  _n)
inline

Definition at line 101 of file BlockQueue.h.

◆ enqueue()

template<class T >
void dev::eth::SizedBlockQueue< T >::enqueue ( T &&  _t)
inline

Definition at line 85 of file BlockQueue.h.

◆ isEmpty()

template<class T >
bool dev::eth::SizedBlockQueue< T >::isEmpty ( ) const
inline

Definition at line 73 of file BlockQueue.h.

◆ next()

template<class T >
T const& dev::eth::SizedBlockQueue< T >::next ( ) const
inline

Definition at line 77 of file BlockQueue.h.

◆ nextHash()

template<class T >
h256 dev::eth::SizedBlockQueue< T >::nextHash ( ) const
inline

Definition at line 75 of file BlockQueue.h.

◆ remove()

template<class T >
bool dev::eth::SizedBlockQueue< T >::remove ( h256 const &  _hash)
inline

Definition at line 106 of file BlockQueue.h.

◆ removeIf()

template<class T >
template<class Pred >
std::vector<T> dev::eth::SizedBlockQueue< T >::removeIf ( Pred  _pred)
inline

Definition at line 113 of file BlockQueue.h.

◆ replace()

template<class T >
bool dev::eth::SizedBlockQueue< T >::replace ( h256 const &  _hash,
T &&  _t 
)
inline

Definition at line 120 of file BlockQueue.h.

◆ size()

template<class T >
std::size_t dev::eth::SizedBlockQueue< T >::size ( ) const
inline

Definition at line 71 of file BlockQueue.h.


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