|
rippled
|
A consumption charge. More...
#include <Charge.h>

Public Types | |
| using | value_type = int |
| The type used to hold a consumption charge. | |
Public Member Functions | |
| Charge ()=delete | |
| Charge (value_type cost, std::string const &label=std::string()) | |
| Create a charge with the specified cost and name. | |
| std::string const & | label () const |
| Return the human readable label associated with the charge. | |
| value_type | cost () const |
| Return the cost of the charge in Resource::Manager units. | |
| std::string | to_string () const |
| Converts this charge into a human readable string. | |
| bool | operator== (Charge const &) const |
| std::strong_ordering | operator<=> (Charge const &) const |
| Charge | operator* (value_type m) const |
Private Attributes | |
| value_type | m_cost |
| std::string | m_label |
| using ripple::Resource::Charge::value_type = int |
|
delete |
| ripple::Resource::Charge::Charge | ( | value_type | cost, |
| std::string const & | label = std::string() |
||
| ) |
Create a charge with the specified cost and name.
Definition at line 30 of file Charge.cpp.
| std::string const & ripple::Resource::Charge::label | ( | ) | const |
Return the human readable label associated with the charge.
Definition at line 36 of file Charge.cpp.
| Charge::value_type ripple::Resource::Charge::cost | ( | ) | const |
Return the cost of the charge in Resource::Manager units.
Definition at line 42 of file Charge.cpp.
| std::string ripple::Resource::Charge::to_string | ( | ) | const |
Converts this charge into a human readable string.
Definition at line 48 of file Charge.cpp.
| bool ripple::Resource::Charge::operator== | ( | Charge const & | c | ) | const |
Definition at line 63 of file Charge.cpp.
| std::strong_ordering ripple::Resource::Charge::operator<=> | ( | Charge const & | c | ) | const |
Definition at line 68 of file Charge.cpp.
| Charge ripple::Resource::Charge::operator* | ( | value_type | m | ) | const |
Definition at line 75 of file Charge.cpp.
|
private |
|
private |