1#ifndef XRPL_OVERLAY_PEER_RESERVATION_TABLE_H_INCLUDED 
    2#define XRPL_OVERLAY_PEER_RESERVATION_TABLE_H_INCLUDED 
    4#include <xrpl/beast/hash/hash_append.h> 
    5#include <xrpl/beast/hash/uhash.h> 
    6#include <xrpl/beast/utility/Journal.h> 
    7#include <xrpl/protocol/PublicKey.h> 
   29    template <typename Hasher>
 
 
A generic endpoint for log messages.
 
static Sink & getNullSink()
Returns a Sink which does nothing.
 
std::optional< PeerReservation > insert_or_assign(PeerReservation const &reservation)
 
std::vector< PeerReservation > list() const
 
bool contains(PublicKey const &nodeId)
 
std::unordered_set< PeerReservation, beast::uhash<>, KeyEqual > table_
 
std::optional< PeerReservation > erase(PublicKey const &nodeId)
 
bool load(DatabaseCon &connection)
 
DatabaseCon * connection_
 
PeerReservationTable(beast::Journal journal=beast::Journal(beast::Journal::getNullSink()))
 
JSON (JavaScript Object Notation).
 
std::enable_if_t< is_contiguously_hashable< T, Hasher >::value > hash_append(Hasher &h, T const &t) noexcept
Logically concatenate input data to a Hasher.
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
bool operator()(PeerReservation const &lhs, PeerReservation const &rhs) const
 
friend bool operator<(PeerReservation const &a, PeerReservation const &b)
 
friend void hash_append(Hasher &h, PeerReservation const &x) noexcept
 
auto toJson() const -> Json::Value