xrpld
Loading...
Searching...
No Matches
xrpl::test::jtx::Balance Class Reference

A balance matches. More...

#include <balance.h>

Collaboration diagram for xrpl::test::jtx::Balance:

Public Member Functions

 Balance (Account account, NoneT)
 Balance (Account account, None const &value)
 Balance (Account account, STAmount value)
void operator() (Env &) const

Private Attributes

bool const none_
Account const account_
STAmount const value_

Detailed Description

A balance matches.

This allows "none" which means either the account doesn't exist (no XRP) or the trust line does not exist. If an amount is specified, the SLE must exist even if the amount is 0, or else the test fails.

Definition at line 18 of file balance.h.

Constructor & Destructor Documentation

◆ Balance() [1/3]

xrpl::test::jtx::Balance::Balance ( Account account,
NoneT  )

Definition at line 26 of file balance.h.

◆ Balance() [2/3]

xrpl::test::jtx::Balance::Balance ( Account account,
None const & value )

Definition at line 30 of file balance.h.

◆ Balance() [3/3]

xrpl::test::jtx::Balance::Balance ( Account account,
STAmount value )

Definition at line 35 of file balance.h.

Member Function Documentation

◆ operator()()

void xrpl::test::jtx::Balance::operator() ( Env & env) const

Definition at line 76 of file balance.cpp.

Member Data Documentation

◆ none_

bool const xrpl::test::jtx::Balance::none_
private

Definition at line 21 of file balance.h.

◆ account_

Account const xrpl::test::jtx::Balance::account_
private

Definition at line 22 of file balance.h.

◆ value_

STAmount const xrpl::test::jtx::Balance::value_
private

Definition at line 23 of file balance.h.