xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
include
xrpl
ledger
entries
NegativeUNLEntry.h
1
#pragma once
2
3
#include <xrpl/beast/utility/Journal.h>
4
#include <xrpl/ledger/ApplyView.h>
5
#include <xrpl/ledger/ReadView.h>
6
#include <xrpl/ledger/entries/SLEBase.h>
7
#include <xrpl/protocol/Indexes.h>
8
#include <xrpl/protocol/LedgerFormats.h>
9
10
namespace
xrpl
{
11
12
template
<
typename
ViewT>
13
class
NegativeUNLEntry
:
public
SLEBase
<ViewT, ltNEGATIVE_UNL>
14
{
15
public
:
16
using
Base
=
SLEBase<ViewT, ltNEGATIVE_UNL>
;
17
18
// Inherit base constructors: adopt an existing SLE, or resolve one from a
19
// Keylet against the view.
20
using
Base::Base;
21
22
explicit
NegativeUNLEntry
(
23
Base::ViewRefType
view,
24
beast::Journal
j =
beast::Journal
{
beast::Journal::getNullSink
()})
25
: Base(
keylet
::negativeUNL(), view, j)
26
{
27
}
28
};
29
30
using
NegativeUNLEntryR
=
NegativeUNLEntry<ReadView>
;
31
using
NegativeUNLEntryW
=
NegativeUNLEntry<ApplyView>
;
32
33
}
// namespace xrpl
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:44
beast::Journal::getNullSink
static Sink & getNullSink()
Returns a Sink which does nothing.
Definition
beast_Journal.cpp:63
xrpl::NegativeUNLEntry
Definition
NegativeUNLEntry.h:14
xrpl::NegativeUNLEntry::Base
SLEBase< ViewT, ltNEGATIVE_UNL > Base
Definition
NegativeUNLEntry.h:16
xrpl::NegativeUNLEntry::NegativeUNLEntry
NegativeUNLEntry(Base::ViewRefType view, beast::Journal j=beast::Journal{beast::Journal::getNullSink()})
Definition
NegativeUNLEntry.h:22
xrpl::SLEBase::ViewRefType
std::conditional_t< kIsWritable, ApplyView &, ReadView const & > ViewRefType
Definition
SLEBase.h:106
xrpl::SLEBase< ViewT, ltNEGATIVE_UNL >::SLEBase
SLEBase(SLEBase const &)=default
xrpl::keylet
Keylet computation functions.
Definition
Indexes.h:40
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::NegativeUNLEntryW
NegativeUNLEntry< ApplyView > NegativeUNLEntryW
Definition
NegativeUNLEntry.h:31
xrpl::NegativeUNLEntryR
NegativeUNLEntry< ReadView > NegativeUNLEntryR
Definition
NegativeUNLEntry.h:30
Generated by
1.17.0