rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | Friends | List of all members
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:
Collaboration graph
[legend]

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 16 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 35 of file include/xrpl/beast/unit_test/amount.h.

Member Function Documentation

◆ operator=()

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

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 39 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 19 of file include/xrpl/beast/unit_test/amount.h.

◆ what_

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

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