xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
include
xrpl
shamap
Family.h
1
#pragma once
2
3
#include <xrpl/basics/base_uint.h>
4
#include <xrpl/beast/utility/Journal.h>
5
#include <xrpl/nodestore/Database.h>
6
#include <xrpl/shamap/FullBelowCache.h>
7
#include <xrpl/shamap/TreeNodeCache.h>
8
9
#include <
cstdint
>
10
#include <
memory
>
11
12
namespace
xrpl
{
13
14
class
Family
15
{
16
public
:
17
Family
(
Family
const
&) =
delete
;
18
Family
(
Family
&&) =
delete
;
19
20
Family
&
21
operator=
(
Family
const
&) =
delete
;
22
23
Family
&
24
operator=
(
Family
&&) =
delete
;
25
26
explicit
Family
() =
default
;
27
virtual
~Family
() =
default
;
28
29
virtual
node_store::Database
&
30
db
() = 0;
31
32
[[nodiscard]]
virtual
node_store::Database
const
&
33
db
()
const
= 0;
34
35
virtual
beast::Journal
const
&
36
journal
() = 0;
37
41
virtual
std::shared_ptr<FullBelowCache>
42
getFullBelowCache
() = 0;
43
47
virtual
std::shared_ptr<TreeNodeCache>
48
getTreeNodeCache
() = 0;
49
50
virtual
void
51
sweep
() = 0;
52
59
virtual
void
60
missingNodeAcquireBySeq
(
std::uint32_t
refNum,
UInt256
const
& nodeHash) = 0;
61
68
virtual
void
69
missingNodeAcquireByHash
(
UInt256
const
& refHash,
std::uint32_t
refNum) = 0;
70
71
virtual
void
72
reset
() = 0;
73
};
74
75
}
// namespace xrpl
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:44
xrpl::Family::db
virtual node_store::Database & db()=0
xrpl::Family::journal
virtual beast::Journal const & journal()=0
xrpl::Family::~Family
virtual ~Family()=default
xrpl::Family::missingNodeAcquireByHash
virtual void missingNodeAcquireByHash(UInt256 const &refHash, std::uint32_t refNum)=0
Acquire ledger that has a missing node by ledger hash.
xrpl::Family::Family
Family(Family const &)=delete
xrpl::Family::Family
Family(Family &&)=delete
xrpl::Family::operator=
Family & operator=(Family const &)=delete
xrpl::Family::Family
Family()=default
xrpl::Family::missingNodeAcquireBySeq
virtual void missingNodeAcquireBySeq(std::uint32_t refNum, UInt256 const &nodeHash)=0
Acquire ledger that has a missing node by ledger sequence.
xrpl::Family::sweep
virtual void sweep()=0
xrpl::Family::operator=
Family & operator=(Family &&)=delete
xrpl::Family::db
virtual node_store::Database const & db() const =0
xrpl::Family::getTreeNodeCache
virtual std::shared_ptr< TreeNodeCache > getTreeNodeCache()=0
Return a pointer to the Family Tree Node Cache.
xrpl::Family::getFullBelowCache
virtual std::shared_ptr< FullBelowCache > getFullBelowCache()=0
Return a pointer to the Family Full Below Cache.
xrpl::Family::reset
virtual void reset()=0
xrpl::node_store::Database
Persistency layer for NodeObject.
Definition
Database.h:45
cstdint
std::uint32_t
memory
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::UInt256
BaseUInt< 256 > UInt256
Definition
base_uint.h:580
std::shared_ptr
Generated by
1.17.0