rippled
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ripple::test::ElementComboIter Class Reference
Collaboration diagram for ripple::test::ElementComboIter:
Collaboration graph
[legend]

Public Member Functions

 ElementComboIter (STPathElement const *prev=nullptr)
 
bool valid () const
 
bool next ()
 
template<class Col , class AccFactory , class IssFactory , class CurrencyFactory >
void emplace_into (Col &col, AccFactory &&accF, IssFactory &&issF, CurrencyFactory &&currencyF, std::optional< AccountID > const &existingAcc, std::optional< Currency > const &existingCur, std::optional< AccountID > const &existingIss)
 

Private Types

enum  SB : std::uint16_t {
  SB::acc, SB::iss, SB::cur, SB::rootAcc,
  SB::rootIss, SB::xrp, SB::sameAccIss, SB::existingAcc,
  SB::existingCur, SB::existingIss, SB::prevAcc, SB::prevCur,
  SB::prevIss, SB::boundary, SB::last
}
 

Private Member Functions

bool has (SB s) const
 
bool hasAny (std::initializer_list< SB > sb) const
 
size_t count (std::initializer_list< SB > sb) const
 

Private Attributes

std::uint16_t state_ = 0
 
STPathElement const * prev_ = nullptr
 
const bool allowCompound_ = false
 

Detailed Description

Definition at line 185 of file PayStrand_test.cpp.

Member Enumeration Documentation

◆ SB

Enumerator
acc 
iss 
cur 
rootAcc 
rootIss 
xrp 
sameAccIss 
existingAcc 
existingCur 
existingIss 
prevAcc 
prevCur 
prevIss 
boundary 
last 

Definition at line 187 of file PayStrand_test.cpp.

Constructor & Destructor Documentation

◆ ElementComboIter()

ripple::test::ElementComboIter::ElementComboIter ( STPathElement const *  prev = nullptr)
explicit

Definition at line 242 of file PayStrand_test.cpp.

Member Function Documentation

◆ has()

bool ripple::test::ElementComboIter::has ( SB  s) const
private

Definition at line 216 of file PayStrand_test.cpp.

◆ hasAny()

bool ripple::test::ElementComboIter::hasAny ( std::initializer_list< SB sb) const
private

Definition at line 222 of file PayStrand_test.cpp.

◆ count()

size_t ripple::test::ElementComboIter::count ( std::initializer_list< SB sb) const
private

Definition at line 231 of file PayStrand_test.cpp.

◆ valid()

bool ripple::test::ElementComboIter::valid ( ) const

Definition at line 247 of file PayStrand_test.cpp.

◆ next()

bool ripple::test::ElementComboIter::next ( )

Definition at line 266 of file PayStrand_test.cpp.

◆ emplace_into()

template<class Col , class AccFactory , class IssFactory , class CurrencyFactory >
void ripple::test::ElementComboIter::emplace_into ( Col &  col,
AccFactory &&  accF,
IssFactory &&  issF,
CurrencyFactory &&  currencyF,
std::optional< AccountID > const &  existingAcc,
std::optional< Currency > const &  existingCur,
std::optional< AccountID > const &  existingIss 
)

Definition at line 284 of file PayStrand_test.cpp.

Member Data Documentation

◆ state_

std::uint16_t ripple::test::ElementComboIter::state_ = 0
private

Definition at line 206 of file PayStrand_test.cpp.

◆ prev_

STPathElement const* ripple::test::ElementComboIter::prev_ = nullptr
private

Definition at line 210 of file PayStrand_test.cpp.

◆ allowCompound_

const bool ripple::test::ElementComboIter::allowCompound_ = false
private

Definition at line 213 of file PayStrand_test.cpp.