rippled
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
ripple::test::ExistingElementPool Struct Reference
Collaboration diagram for ripple::test::ExistingElementPool:
Collaboration graph
[legend]

Classes

struct  StateGuard
 

Public Types

using ResetState = std::tuple< size_t, size_t >
 

Public Member Functions

jtx::Account getAccount (size_t id)
 
ripple::Currency getCurrency (size_t id)
 
ResetState getResetState () const
 
void resetTo (ResetState const &s)
 
void setupEnv (jtx::Env &env, size_t numAct, size_t numCur, std::optional< size_t > const &offererIndex)
 
std::int64_t totalXRP (ReadView const &v, bool incRoot)
 
bool checkBalances (ReadView const &v1, ReadView const &v2)
 
jtx::Account getAvailAccount ()
 
ripple::Currency getAvailCurrency ()
 
template<class F >
void for_each_element_pair (STAmount const &sendMax, STAmount const &deliver, std::vector< STPathElement > const &prefix, std::vector< STPathElement > const &suffix, std::optional< AccountID > const &existingAcc, std::optional< Currency > const &existingCur, std::optional< AccountID > const &existingIss, F &&f)
 

Public Attributes

std::vector< jtx::Accountaccounts
 
std::vector< ripple::Currencycurrencies
 
std::vector< std::stringcurrencyNames
 
size_t nextAvailAccount = 0
 
size_t nextAvailCurrency = 0
 

Detailed Description

Definition at line 335 of file PayStrand_test.cpp.

Member Typedef Documentation

◆ ResetState

Definition at line 360 of file PayStrand_test.cpp.

Member Function Documentation

◆ getAccount()

jtx::Account ripple::test::ExistingElementPool::getAccount ( size_t  id)

Definition at line 342 of file PayStrand_test.cpp.

◆ getCurrency()

ripple::Currency ripple::test::ExistingElementPool::getCurrency ( size_t  id)

Definition at line 349 of file PayStrand_test.cpp.

◆ getResetState()

ResetState ripple::test::ExistingElementPool::getResetState ( ) const

Definition at line 362 of file PayStrand_test.cpp.

◆ resetTo()

void ripple::test::ExistingElementPool::resetTo ( ResetState const &  s)

Definition at line 368 of file PayStrand_test.cpp.

◆ setupEnv()

void ripple::test::ExistingElementPool::setupEnv ( jtx::Env env,
size_t  numAct,
size_t  numCur,
std::optional< size_t > const &  offererIndex 
)

Definition at line 394 of file PayStrand_test.cpp.

◆ totalXRP()

std::int64_t ripple::test::ExistingElementPool::totalXRP ( ReadView const &  v,
bool  incRoot 
)

Definition at line 497 of file PayStrand_test.cpp.

◆ checkBalances()

bool ripple::test::ExistingElementPool::checkBalances ( ReadView const &  v1,
ReadView const &  v2 
)

Definition at line 518 of file PayStrand_test.cpp.

◆ getAvailAccount()

jtx::Account ripple::test::ExistingElementPool::getAvailAccount ( )

Definition at line 567 of file PayStrand_test.cpp.

◆ getAvailCurrency()

ripple::Currency ripple::test::ExistingElementPool::getAvailCurrency ( )

Definition at line 573 of file PayStrand_test.cpp.

◆ for_each_element_pair()

template<class F >
void ripple::test::ExistingElementPool::for_each_element_pair ( STAmount const &  sendMax,
STAmount const &  deliver,
std::vector< STPathElement > const &  prefix,
std::vector< STPathElement > const &  suffix,
std::optional< AccountID > const &  existingAcc,
std::optional< Currency > const &  existingCur,
std::optional< AccountID > const &  existingIss,
F &&  f 
)

Definition at line 580 of file PayStrand_test.cpp.

Member Data Documentation

◆ accounts

std::vector<jtx::Account> ripple::test::ExistingElementPool::accounts

Definition at line 337 of file PayStrand_test.cpp.

◆ currencies

std::vector<ripple::Currency> ripple::test::ExistingElementPool::currencies

Definition at line 338 of file PayStrand_test.cpp.

◆ currencyNames

std::vector<std::string> ripple::test::ExistingElementPool::currencyNames

Definition at line 339 of file PayStrand_test.cpp.

◆ nextAvailAccount

size_t ripple::test::ExistingElementPool::nextAvailAccount = 0

Definition at line 357 of file PayStrand_test.cpp.

◆ nextAvailCurrency

size_t ripple::test::ExistingElementPool::nextAvailCurrency = 0

Definition at line 358 of file PayStrand_test.cpp.