xrpld
Loading...
Searching...
No Matches
xrpl::test::ElementComboIter Class Reference
Collaboration diagram for xrpl::test::ElementComboIter:

Public Member Functions

 ElementComboIter (STPathElement const *prev=nullptr)
bool valid () const
bool next ()
template<class Col, class AccFactory, class IssFactory, class CurrencyFactory>
void emplaceInto (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 class  SB : std::uint16_t {
  Acc , Iss , Cur , RootAcc ,
  RootIss , Xrp , SameAccIss , ExistingAcc ,
  ExistingCur , ExistingIss , PrevAcc , PrevCur ,
  PrevIss , Boundary , 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
bool const allowCompound_ = false

Detailed Description

Definition at line 93 of file PayStrand_test.cpp.

Member Enumeration Documentation

◆ SB

enum class xrpl::test::ElementComboIter::SB : std::uint16_t
strongprivate
Enumerator
Acc 
Iss 
Cur 
RootAcc 
RootIss 
Xrp 
SameAccIss 
ExistingAcc 
ExistingCur 
ExistingIss 
PrevAcc 
PrevCur 
PrevIss 
Boundary 
Last 

Definition at line 95 of file PayStrand_test.cpp.

Constructor & Destructor Documentation

◆ ElementComboIter()

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

Definition at line 147 of file PayStrand_test.cpp.

Member Function Documentation

◆ has()

bool xrpl::test::ElementComboIter::has ( SB s) const
nodiscardprivate

Definition at line 122 of file PayStrand_test.cpp.

◆ hasAny()

bool xrpl::test::ElementComboIter::hasAny ( std::initializer_list< SB > sb) const
nodiscardprivate

Definition at line 128 of file PayStrand_test.cpp.

◆ count()

size_t xrpl::test::ElementComboIter::count ( std::initializer_list< SB > sb) const
nodiscardprivate

Definition at line 134 of file PayStrand_test.cpp.

◆ valid()

bool xrpl::test::ElementComboIter::valid ( ) const
nodiscard

Definition at line 152 of file PayStrand_test.cpp.

◆ next()

bool xrpl::test::ElementComboIter::next ( )

Definition at line 167 of file PayStrand_test.cpp.

◆ emplaceInto()

template<class Col, class AccFactory, class IssFactory, class CurrencyFactory>
void xrpl::test::ElementComboIter::emplaceInto ( 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 181 of file PayStrand_test.cpp.

Member Data Documentation

◆ state_

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

Definition at line 114 of file PayStrand_test.cpp.

◆ prev_

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

Definition at line 116 of file PayStrand_test.cpp.

◆ allowCompound_

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

Definition at line 119 of file PayStrand_test.cpp.