rippled
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
ripple::STPathElement Class Referencefinal

#include <STPathSet.h>

Inheritance diagram for ripple::STPathElement:
Inheritance graph
[legend]
Collaboration diagram for ripple::STPathElement:
Collaboration graph
[legend]

Public Types

enum  Type {
  typeNone = 0x00 , typeAccount , typeCurrency = 0x10 , typeIssuer = 0x20 ,
  typeBoundary = 0xFF , typeAll = typeAccount | typeCurrency | typeIssuer
}
 

Public Member Functions

 STPathElement ()
 
 STPathElement (STPathElement const &)=default
 
STPathElementoperator= (STPathElement const &)=default
 
 STPathElement (std::optional< AccountID > const &account, std::optional< Currency > const &currency, std::optional< AccountID > const &issuer)
 
 STPathElement (AccountID const &account, Currency const &currency, AccountID const &issuer, bool forceCurrency=false)
 
 STPathElement (unsigned int uType, AccountID const &account, Currency const &currency, AccountID const &issuer)
 
auto getNodeType () const
 
bool isOffer () const
 
bool isAccount () const
 
bool hasIssuer () const
 
bool hasCurrency () const
 
bool isNone () const
 
AccountID const & getAccountID () const
 
Currency const & getCurrency () const
 
AccountID const & getIssuerID () const
 
bool operator== (STPathElement const &t) const
 
bool operator!= (STPathElement const &t) const
 

Static Private Member Functions

static std::size_t get_hash (STPathElement const &element)
 
static auto & getCounter () noexcept
 

Private Attributes

unsigned int mType
 
AccountID mAccountID
 
Currency mCurrencyID
 
AccountID mIssuerID
 
bool is_offer_
 
std::size_t hash_value_
 

Detailed Description

Definition at line 35 of file STPathSet.h.

Member Enumeration Documentation

◆ Type

Enumerator
typeNone 
typeAccount 
typeCurrency 
typeIssuer 
typeBoundary 
typeAll 

Definition at line 46 of file STPathSet.h.

Constructor & Destructor Documentation

◆ STPathElement() [1/5]

ripple::STPathElement::STPathElement ( )

Definition at line 241 of file STPathSet.h.

◆ STPathElement() [2/5]

ripple::STPathElement::STPathElement ( STPathElement const &  )
default

◆ STPathElement() [3/5]

ripple::STPathElement::STPathElement ( std::optional< AccountID > const &  account,
std::optional< Currency > const &  currency,
std::optional< AccountID > const &  issuer 
)

Definition at line 246 of file STPathSet.h.

◆ STPathElement() [4/5]

ripple::STPathElement::STPathElement ( AccountID const &  account,
Currency const &  currency,
AccountID const &  issuer,
bool  forceCurrency = false 
)

Definition at line 284 of file STPathSet.h.

◆ STPathElement() [5/5]

ripple::STPathElement::STPathElement ( unsigned int  uType,
AccountID const &  account,
Currency const &  currency,
AccountID const &  issuer 
)

Definition at line 307 of file STPathSet.h.

Member Function Documentation

◆ operator=()

STPathElement & ripple::STPathElement::operator= ( STPathElement const &  )
default

◆ getNodeType()

auto ripple::STPathElement::getNodeType ( ) const

Definition at line 322 of file STPathSet.h.

◆ isOffer()

bool ripple::STPathElement::isOffer ( ) const

Definition at line 328 of file STPathSet.h.

◆ isAccount()

bool ripple::STPathElement::isAccount ( ) const

Definition at line 334 of file STPathSet.h.

◆ hasIssuer()

bool ripple::STPathElement::hasIssuer ( ) const

Definition at line 340 of file STPathSet.h.

◆ hasCurrency()

bool ripple::STPathElement::hasCurrency ( ) const

Definition at line 346 of file STPathSet.h.

◆ isNone()

bool ripple::STPathElement::isNone ( ) const

Definition at line 352 of file STPathSet.h.

◆ getAccountID()

AccountID const & ripple::STPathElement::getAccountID ( ) const

Definition at line 360 of file STPathSet.h.

◆ getCurrency()

Currency const & ripple::STPathElement::getCurrency ( ) const

Definition at line 366 of file STPathSet.h.

◆ getIssuerID()

AccountID const & ripple::STPathElement::getIssuerID ( ) const

Definition at line 372 of file STPathSet.h.

◆ operator==()

bool ripple::STPathElement::operator== ( STPathElement const &  t) const

Definition at line 378 of file STPathSet.h.

◆ operator!=()

bool ripple::STPathElement::operator!= ( STPathElement const &  t) const

Definition at line 386 of file STPathSet.h.

◆ get_hash()

std::size_t ripple::STPathElement::get_hash ( STPathElement const &  element)
staticprivate

Definition at line 40 of file STPathSet.cpp.

◆ getCounter()

static auto & ripple::CountedObject< STPathElement >::getCounter ( )
staticprivatenoexceptinherited

Definition at line 129 of file CountedObject.h.

Member Data Documentation

◆ mType

unsigned int ripple::STPathElement::mType
private

Definition at line 37 of file STPathSet.h.

◆ mAccountID

AccountID ripple::STPathElement::mAccountID
private

Definition at line 38 of file STPathSet.h.

◆ mCurrencyID

Currency ripple::STPathElement::mCurrencyID
private

Definition at line 39 of file STPathSet.h.

◆ mIssuerID

AccountID ripple::STPathElement::mIssuerID
private

Definition at line 40 of file STPathSet.h.

◆ is_offer_

bool ripple::STPathElement::is_offer_
private

Definition at line 42 of file STPathSet.h.

◆ hash_value_

std::size_t ripple::STPathElement::hash_value_
private

Definition at line 43 of file STPathSet.h.