rippled
Public Types | Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
ripple::STPathElement Class Referencefinal
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== (const STPathElement &t) const
 
bool operator!= (const STPathElement &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 34 of file STPathSet.h.

Member Enumeration Documentation

◆ Type

Enumerator
typeNone 
typeAccount 
typeCurrency 
typeIssuer 
typeBoundary 
typeAll 

Definition at line 45 of file STPathSet.h.

Constructor & Destructor Documentation

◆ STPathElement() [1/5]

ripple::STPathElement::STPathElement ( )

Definition at line 240 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 245 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 279 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 302 of file STPathSet.h.

Member Function Documentation

◆ operator=()

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

◆ getNodeType()

auto ripple::STPathElement::getNodeType ( ) const

Definition at line 317 of file STPathSet.h.

◆ isOffer()

bool ripple::STPathElement::isOffer ( ) const

Definition at line 323 of file STPathSet.h.

◆ isAccount()

bool ripple::STPathElement::isAccount ( ) const

Definition at line 329 of file STPathSet.h.

◆ hasIssuer()

bool ripple::STPathElement::hasIssuer ( ) const

Definition at line 335 of file STPathSet.h.

◆ hasCurrency()

bool ripple::STPathElement::hasCurrency ( ) const

Definition at line 341 of file STPathSet.h.

◆ isNone()

bool ripple::STPathElement::isNone ( ) const

Definition at line 347 of file STPathSet.h.

◆ getAccountID()

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

Definition at line 355 of file STPathSet.h.

◆ getCurrency()

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

Definition at line 361 of file STPathSet.h.

◆ getIssuerID()

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

Definition at line 367 of file STPathSet.h.

◆ operator==()

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

Definition at line 373 of file STPathSet.h.

◆ operator!=()

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

Definition at line 381 of file STPathSet.h.

◆ get_hash()

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

Definition at line 30 of file STPathSet.cpp.

◆ getCounter()

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

Definition at line 128 of file CountedObject.h.

Member Data Documentation

◆ mType

unsigned int ripple::STPathElement::mType
private

Definition at line 36 of file STPathSet.h.

◆ mAccountID

AccountID ripple::STPathElement::mAccountID
private

Definition at line 37 of file STPathSet.h.

◆ mCurrencyID

Currency ripple::STPathElement::mCurrencyID
private

Definition at line 38 of file STPathSet.h.

◆ mIssuerID

AccountID ripple::STPathElement::mIssuerID
private

Definition at line 39 of file STPathSet.h.

◆ is_offer_

bool ripple::STPathElement::is_offer_
private

Definition at line 41 of file STPathSet.h.

◆ hash_value_

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

Definition at line 42 of file STPathSet.h.