xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
libxrpl
protocol
MPTAmount.cpp
1
#include <xrpl/protocol/MPTAmount.h>
2
3
namespace
xrpl
{
4
5
MPTAmount
&
6
MPTAmount::operator+=
(
MPTAmount
const
& other)
7
{
8
value_
+= other.
value
();
9
return
*
this
;
10
}
11
12
MPTAmount
&
13
MPTAmount::operator-=
(
MPTAmount
const
& other)
14
{
15
value_
-= other.
value
();
16
return
*
this
;
17
}
18
19
MPTAmount
20
MPTAmount::operator-
()
const
21
{
22
return
MPTAmount
{-
value_
};
23
}
24
25
bool
26
MPTAmount::operator==
(
MPTAmount
const
& other)
const
27
{
28
return
value_
== other.
value_
;
29
}
30
31
bool
32
MPTAmount::operator==
(
value_type
other)
const
33
{
34
return
value_
== other;
35
}
36
37
bool
38
MPTAmount::operator<
(
MPTAmount
const
& other)
const
39
{
40
return
value_
< other.
value_
;
41
}
42
43
MPTAmount
44
MPTAmount::minPositiveAmount
()
45
{
46
return
MPTAmount
{1};
47
}
48
49
}
// namespace xrpl
xrpl::MPTAmount
Definition
MPTAmount.h:23
xrpl::MPTAmount::value_type
std::int64_t value_type
Definition
MPTAmount.h:25
xrpl::MPTAmount::operator==
bool operator==(MPTAmount const &other) const
Definition
MPTAmount.cpp:26
xrpl::MPTAmount::minPositiveAmount
static MPTAmount minPositiveAmount()
Definition
MPTAmount.cpp:44
xrpl::MPTAmount::operator-=
MPTAmount & operator-=(MPTAmount const &other)
Definition
MPTAmount.cpp:13
xrpl::MPTAmount::operator-
MPTAmount operator-() const
Definition
MPTAmount.cpp:20
xrpl::MPTAmount::value
constexpr value_type value() const
Returns the underlying value.
Definition
MPTAmount.h:135
xrpl::MPTAmount::operator<
bool operator<(MPTAmount const &other) const
Definition
MPTAmount.cpp:38
xrpl::MPTAmount::operator+=
MPTAmount & operator+=(MPTAmount const &other)
Definition
MPTAmount.cpp:6
xrpl::MPTAmount::value_
value_type value_
Definition
MPTAmount.h:28
xrpl::MPTAmount::MPTAmount
MPTAmount()=default
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
Generated by
1.17.0