|
xrpld
|
#include <Livecache.h>

Classes | |
| struct | Transform |
Public Types | |
| using | iterator = boost::transform_iterator<Transform<false>, lists_type::iterator> |
| using | const_iterator |
| using | reverse_iterator |
| using | const_reverse_iterator |
Public Member Functions | |
| iterator | begin () |
| const_iterator | begin () const |
| const_iterator | cbegin () const |
| iterator | end () |
| const_iterator | end () const |
| const_iterator | cend () const |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rbegin () const |
| const_reverse_iterator | crbegin () const |
| reverse_iterator | rend () |
| const_reverse_iterator | rend () const |
| const_reverse_iterator | crend () const |
| void | shuffle () |
| Shuffle each hop list. | |
| std::string | histogram () const |
Private Types | |
| using | Histogram = std::array<int, 1 + tuning::kMaxHops + 1> |
| using | lists_type = std::array<list_type, 1 + tuning::kMaxHops + 1> |
Private Member Functions | |
| HopsT (Allocator const &alloc) | |
| void | insert (Element &e) |
| void | reinsert (Element &e, std::uint32_t hops) |
| void | remove (Element &e) |
Private Attributes | |
| lists_type | lists_ |
| Histogram | hist_ {} |
Friends | |
| class | Livecache |
Definition at line 215 of file Livecache.h.
|
private |
Definition at line 223 of file Livecache.h.
|
private |
Definition at line 224 of file Livecache.h.
| using xrpl::peer_finder::Livecache< Allocator >::HopsT::iterator = boost::transform_iterator<Transform<false>, lists_type::iterator> |
Definition at line 242 of file Livecache.h.
| using xrpl::peer_finder::Livecache< Allocator >::HopsT::const_iterator |
Definition at line 244 of file Livecache.h.
| using xrpl::peer_finder::Livecache< Allocator >::HopsT::reverse_iterator |
Definition at line 247 of file Livecache.h.
| using xrpl::peer_finder::Livecache< Allocator >::HopsT::const_reverse_iterator |
Definition at line 250 of file Livecache.h.
|
explicitprivate |
Definition at line 520 of file Livecache.h.
| iterator xrpl::peer_finder::Livecache< Allocator >::HopsT::begin | ( | ) |
Definition at line 254 of file Livecache.h.
|
nodiscard |
Definition at line 260 of file Livecache.h.
|
nodiscard |
Definition at line 266 of file Livecache.h.
| iterator xrpl::peer_finder::Livecache< Allocator >::HopsT::end | ( | ) |
Definition at line 272 of file Livecache.h.
|
nodiscard |
Definition at line 278 of file Livecache.h.
|
nodiscard |
Definition at line 284 of file Livecache.h.
| reverse_iterator xrpl::peer_finder::Livecache< Allocator >::HopsT::rbegin | ( | ) |
Definition at line 290 of file Livecache.h.
|
nodiscard |
Definition at line 296 of file Livecache.h.
|
nodiscard |
Definition at line 302 of file Livecache.h.
| reverse_iterator xrpl::peer_finder::Livecache< Allocator >::HopsT::rend | ( | ) |
Definition at line 308 of file Livecache.h.
|
nodiscard |
Definition at line 314 of file Livecache.h.
|
nodiscard |
Definition at line 320 of file Livecache.h.
| void xrpl::peer_finder::Livecache< Allocator >::HopsT::shuffle | ( | ) |
Shuffle each hop list.
Definition at line 491 of file Livecache.h.
|
nodiscard |
Definition at line 507 of file Livecache.h.
|
private |
Definition at line 527 of file Livecache.h.
|
private |
Definition at line 539 of file Livecache.h.
|
private |
Definition at line 556 of file Livecache.h.
|
friend |
Definition at line 347 of file Livecache.h.
|
private |
Definition at line 348 of file Livecache.h.
|
private |
Definition at line 349 of file Livecache.h.