rippled
Public Member Functions | Friends | List of all members
ripple::test::jtx::XRP_t Struct Reference

Public Member Functions

 operator Issue () const
 Implicit conversion to Issue. More...
 
None operator() (none_t) const
 Returns None-of-XRP. More...
 
template<class T , class = std::enable_if_t<std::is_integral_v<T>>>
PrettyAmount operator() (T v) const
 Returns an amount of XRP as PrettyAmount, which is trivially convertable to STAmount. More...
 
PrettyAmount operator() (double v) const
 

Friends

BookSpec operator~ (XRP_t const &)
 

Detailed Description

Definition at line 168 of file amount.h.

Member Function Documentation

◆ operator Issue()

ripple::test::jtx::XRP_t::operator Issue ( ) const

Implicit conversion to Issue.

This allows passing XRP where an Issue is expected.

Definition at line 175 of file amount.h.

◆ operator()() [1/3]

template<class T , class = std::enable_if_t<std::is_integral_v<T>>>
PrettyAmount ripple::test::jtx::XRP_t::operator() ( v) const

Returns an amount of XRP as PrettyAmount, which is trivially convertable to STAmount.

Parameters
vThe number of XRP (not drops)

Definition at line 188 of file amount.h.

◆ operator()() [2/3]

PrettyAmount ripple::test::jtx::XRP_t::operator() ( double  v) const

Definition at line 196 of file amount.h.

◆ operator()() [3/3]

None ripple::test::jtx::XRP_t::operator() ( none_t  ) const

Returns None-of-XRP.

Definition at line 214 of file amount.h.

Friends And Related Function Documentation

◆ operator~

BookSpec operator~ ( XRP_t const &  )
friend

Definition at line 220 of file amount.h.