rippled
Public Member Functions | Public Attributes | Friends | List of all members
ripple::test::jtx::IOU Class Reference

Converts to IOU Issue or STAmount. More...

Collaboration diagram for ripple::test::jtx::IOU:
Collaboration graph
[legend]

Public Member Functions

 IOU (Account const &account_, ripple::Currency const &currency_)
 
Issue issue () const
 
 operator Issue () const
 Implicit conversion to Issue. More...
 
template<class T , class = std::enable_if_t< sizeof(T) >= sizeof(int) && std::is_arithmetic<T>::value>
PrettyAmount operator() (T v) const
 
PrettyAmount operator() (epsilon_t) const
 
PrettyAmount operator() (detail::epsilon_multiple) const
 
None operator() (none_t) const
 Returns None-of-Issue. More...
 

Public Attributes

Account account
 
ripple::Currency currency
 

Friends

BookSpec operator~ (IOU const &iou)
 

Detailed Description

Converts to IOU Issue or STAmount.

Examples: IOU Converts to the underlying Issue IOU(10) Returns STAmount of 10 of the underlying Issue.

Definition at line 291 of file amount.h.

Constructor & Destructor Documentation

◆ IOU()

ripple::test::jtx::IOU::IOU ( Account const &  account_,
ripple::Currency const &  currency_ 
)

Definition at line 297 of file amount.h.

Member Function Documentation

◆ issue()

Issue ripple::test::jtx::IOU::issue ( ) const

Definition at line 303 of file amount.h.

◆ operator Issue()

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

Implicit conversion to Issue.

This allows passing an IOU value where an Issue is expected.

Definition at line 313 of file amount.h.

◆ operator()() [1/4]

template<class T , class = std::enable_if_t< sizeof(T) >= sizeof(int) && std::is_arithmetic<T>::value>
PrettyAmount ripple::test::jtx::IOU::operator() ( v) const

Definition at line 323 of file amount.h.

◆ operator()() [2/4]

PrettyAmount ripple::test::jtx::IOU::operator() ( epsilon_t  ) const

Definition at line 107 of file amount.cpp.

◆ operator()() [3/4]

PrettyAmount ripple::test::jtx::IOU::operator() ( detail::epsilon_multiple  m) const

Definition at line 113 of file amount.cpp.

◆ operator()() [4/4]

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

Returns None-of-Issue.

Definition at line 337 of file amount.h.

Friends And Related Function Documentation

◆ operator~

BookSpec operator~ ( IOU const &  iou)
friend

Definition at line 343 of file amount.h.

Member Data Documentation

◆ account

Account ripple::test::jtx::IOU::account

Definition at line 294 of file amount.h.

◆ currency

ripple::Currency ripple::test::jtx::IOU::currency

Definition at line 295 of file amount.h.