|
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 197 of file Livecache.h.
|
private |
Definition at line 205 of file Livecache.h.
|
private |
Definition at line 206 of file Livecache.h.
| using xrpl::PeerFinder::Livecache< Allocator >::HopsT::iterator = boost::transform_iterator<Transform<false>, lists_type::iterator> |
Definition at line 224 of file Livecache.h.
| using xrpl::PeerFinder::Livecache< Allocator >::HopsT::const_iterator |
Definition at line 226 of file Livecache.h.
| using xrpl::PeerFinder::Livecache< Allocator >::HopsT::reverse_iterator |
Definition at line 229 of file Livecache.h.
| using xrpl::PeerFinder::Livecache< Allocator >::HopsT::const_reverse_iterator |
Definition at line 232 of file Livecache.h.
|
explicitprivate |
Definition at line 490 of file Livecache.h.
| iterator xrpl::PeerFinder::Livecache< Allocator >::HopsT::begin | ( | ) |
Definition at line 236 of file Livecache.h.
|
nodiscard |
Definition at line 242 of file Livecache.h.
|
nodiscard |
Definition at line 248 of file Livecache.h.
| iterator xrpl::PeerFinder::Livecache< Allocator >::HopsT::end | ( | ) |
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.
| reverse_iterator xrpl::PeerFinder::Livecache< Allocator >::HopsT::rbegin | ( | ) |
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::PeerFinder::Livecache< Allocator >::HopsT::rend | ( | ) |
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.
| void xrpl::PeerFinder::Livecache< Allocator >::HopsT::shuffle | ( | ) |
Shuffle each hop list.
Definition at line 461 of file Livecache.h.
|
nodiscard |
Definition at line 477 of file Livecache.h.
|
private |
Definition at line 497 of file Livecache.h.
|
private |
Definition at line 509 of file Livecache.h.
|
private |
Definition at line 526 of file Livecache.h.
|
friend |
Definition at line 327 of file Livecache.h.
|
private |
Definition at line 328 of file Livecache.h.
|
private |
Definition at line 329 of file Livecache.h.