xrpld
Loading...
Searching...
No Matches
beast::unit_test::Amount Class Reference

Utility for producing nicely composed output of amounts with units. More...

#include <amount.h>

Collaboration diagram for beast::unit_test::Amount:

Public Member Functions

 Amount (Amount const &)=default
Amountoperator= (Amount const &)=delete
template<class = void>
 Amount (std::size_t n, std::string const &what)

Private Attributes

std::size_t n_
std::string const & what_

Friends

std::ostreamoperator<< (std::ostream &s, Amount const &t)

Detailed Description

Utility for producing nicely composed output of amounts with units.

Definition at line 14 of file include/xrpl/beast/unit_test/amount.h.

Constructor & Destructor Documentation

◆ Amount() [1/2]

beast::unit_test::Amount::Amount ( Amount const & )
default

◆ Amount() [2/2]

template<class>
beast::unit_test::Amount::Amount ( std::size_t n,
std::string const & what )

Definition at line 33 of file include/xrpl/beast/unit_test/amount.h.

Member Function Documentation

◆ operator=()

Amount & beast::unit_test::Amount::operator= ( Amount const & )
delete

◆ operator<<

std::ostream & operator<< ( std::ostream & s,
Amount const & t )
friend

Definition at line 37 of file include/xrpl/beast/unit_test/amount.h.

Member Data Documentation

◆ n_

std::size_t beast::unit_test::Amount::n_
private

Definition at line 17 of file include/xrpl/beast/unit_test/amount.h.

◆ what_

std::string const& beast::unit_test::Amount::what_
private

Definition at line 18 of file include/xrpl/beast/unit_test/amount.h.