xrpld
Loading...
Searching...
No Matches
xrpl::STPath Class Referencefinal

#include <STPathSet.h>

Inheritance diagram for xrpl::STPath:
Collaboration diagram for xrpl::STPath:

Public Member Functions

 STPath ()=default
 STPath (std::vector< STPathElement > p)
std::vector< STPathElement >::size_type size () const
bool empty () const
void pushBack (STPathElement const &e)
template<typename... Args>
void emplaceBack (Args &&... args)
bool hasSeen (AccountID const &account, PathAsset const &asset, AccountID const &issuer) const
json::Value getJson (JsonOptions) const
std::vector< STPathElement >::const_iterator begin () const
std::vector< STPathElement >::const_iterator end () const
bool operator== (STPath const &t) const
std::vector< STPathElement >::const_reference back () const
std::vector< STPathElement >::const_reference front () const
STPathElementoperator[] (int i)
STPathElement const & operator[] (int i) const
void reserve (size_t s)

Public Attributes

friend Object

Static Private Member Functions

static auto & getCounter () noexcept

Private Attributes

std::vector< STPathElementpath_

Detailed Description

Definition at line 119 of file STPathSet.h.

Constructor & Destructor Documentation

◆ STPath() [1/2]

xrpl::STPath::STPath ( )
default

◆ STPath() [2/2]

xrpl::STPath::STPath ( std::vector< STPathElement > p)

Definition at line 419 of file STPathSet.h.

Member Function Documentation

◆ size()

std::vector< STPathElement >::size_type xrpl::STPath::size ( ) const
nodiscard

Definition at line 424 of file STPathSet.h.

◆ empty()

bool xrpl::STPath::empty ( ) const
nodiscard

Definition at line 430 of file STPathSet.h.

◆ pushBack()

void xrpl::STPath::pushBack ( STPathElement const & e)

Definition at line 436 of file STPathSet.h.

◆ emplaceBack()

template<typename... Args>
void xrpl::STPath::emplaceBack ( Args &&... args)

Definition at line 443 of file STPathSet.h.

◆ hasSeen()

bool xrpl::STPath::hasSeen ( AccountID const & account,
PathAsset const & asset,
AccountID const & issuer ) const
nodiscard

Definition at line 160 of file STPathSet.cpp.

◆ getJson()

json::Value xrpl::STPath::getJson ( JsonOptions ) const
nodiscard

Definition at line 172 of file STPathSet.cpp.

◆ begin()

std::vector< STPathElement >::const_iterator xrpl::STPath::begin ( ) const
nodiscard

Definition at line 449 of file STPathSet.h.

◆ end()

std::vector< STPathElement >::const_iterator xrpl::STPath::end ( ) const
nodiscard

Definition at line 455 of file STPathSet.h.

◆ operator==()

bool xrpl::STPath::operator== ( STPath const & t) const

Definition at line 461 of file STPathSet.h.

◆ back()

std::vector< STPathElement >::const_reference xrpl::STPath::back ( ) const
nodiscard

Definition at line 467 of file STPathSet.h.

◆ front()

std::vector< STPathElement >::const_reference xrpl::STPath::front ( ) const
nodiscard

Definition at line 473 of file STPathSet.h.

◆ operator[]() [1/2]

STPathElement & xrpl::STPath::operator[] ( int i)

Definition at line 479 of file STPathSet.h.

◆ operator[]() [2/2]

STPathElement const & xrpl::STPath::operator[] ( int i) const

Definition at line 485 of file STPathSet.h.

◆ reserve()

void xrpl::STPath::reserve ( size_t s)

Definition at line 491 of file STPathSet.h.

◆ getCounter()

auto & xrpl::CountedObject< STPath >::getCounter ( )
staticprivatenoexceptinherited

Definition at line 109 of file CountedObject.h.

Member Data Documentation

◆ path_

std::vector<STPathElement> xrpl::STPath::path_
private

Definition at line 121 of file STPathSet.h.

◆ Object

friend xrpl::CountedObject< STPath >::STPath
inherited

Definition at line 134 of file CountedObject.h.