rippled
Loading...
Searching...
No Matches
include
xrpl
protocol
STTakesAsset.h
1
#pragma once
2
3
#include <xrpl/protocol/Asset.h>
4
#include <xrpl/protocol/STBase.h>
5
6
namespace
xrpl
{
7
21
class
STTakesAsset
:
public
STBase
22
{
23
protected
:
24
std::optional<Asset>
asset_
;
25
26
public
:
27
using
STBase::STBase
;
28
using
STBase::operator=;
29
30
virtual
void
31
associateAsset
(
Asset
const
& a);
32
};
33
34
inline
void
35
STTakesAsset::associateAsset
(
Asset
const
& a)
36
{
37
asset_
.emplace(a);
38
}
39
40
class
STLedgerEntry
;
41
57
void
58
associateAsset
(
STLedgerEntry
& sle,
Asset
const
& asset);
59
60
}
// namespace xrpl
xrpl::Asset
Definition
Asset.h:26
xrpl::STBase
A type which can be exported to a well known binary format.
Definition
STBase.h:115
xrpl::STBase::STBase
STBase()
Definition
STBase.cpp:14
xrpl::STLedgerEntry
Definition
STLedgerEntry.h:14
xrpl::STTakesAsset
Intermediate class for any STBase-derived class to store an Asset.
Definition
STTakesAsset.h:22
xrpl::STTakesAsset::associateAsset
virtual void associateAsset(Asset const &a)
Definition
STTakesAsset.h:35
xrpl::STTakesAsset::asset_
std::optional< Asset > asset_
Definition
STTakesAsset.h:24
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::associateAsset
void associateAsset(STLedgerEntry &sle, Asset const &asset)
Associate an Asset with all sMD_NeedsAsset fields in a ledger entry.
std::optional
Generated by
1.9.8