Fabcoin Core
0.16.2
P2P Digital Currency
|
#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) |
Private Types | |
using | BlockMultimap = std::multimap< KeyType, std::pair< h256, bytes >> |
Private Member Functions | |
std::vector< std::pair< h256, bytes > > | removeRange (typename BlockMultimap::iterator _begin, typename BlockMultimap::iterator _end) |
Private Attributes | |
BlockMultimap | m_map |
std::atomic< size_t > | m_size = {0} |
Tracks total size in bytes. More... | |
Definition at line 161 of file BlockQueue.h.
|
private |
Definition at line 198 of file BlockQueue.h.
|
inline |
Definition at line 172 of file BlockQueue.h.
|
inline |
Definition at line 164 of file BlockQueue.h.
|
inline |
Definition at line 170 of file BlockQueue.h.
|
inline |
Definition at line 178 of file BlockQueue.h.
|
inline |
Definition at line 168 of file BlockQueue.h.
|
inline |
Definition at line 186 of file BlockQueue.h.
|
inline |
Definition at line 192 of file BlockQueue.h.
|
inlineprivate |
Definition at line 200 of file BlockQueue.h.
|
inline |
Definition at line 166 of file BlockQueue.h.
|
private |
Definition at line 216 of file BlockQueue.h.
|
private |
Tracks total size in bytes.
Definition at line 217 of file BlockQueue.h.