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

#include <STPathSet.h>

Inheritance diagram for xrpl::STPathSet:
Collaboration diagram for xrpl::STPathSet:

Public Member Functions

 STPathSet ()=default
 STPathSet (SField const &n)
 STPathSet (SerialIter &sit, SField const &name)
void add (Serializer &s) const override
json::Value getJson (JsonOptions) const override
SerializedTypeID getSType () const override
bool assembleAdd (STPath const &base, STPathElement const &tail)
bool isEquivalent (STBase const &t) const override
bool isDefault () const override
std::vector< STPath >::const_reference operator[] (std::vector< STPath >::size_type n) const
std::vector< STPath >::reference operator[] (std::vector< STPath >::size_type n)
std::vector< STPath >::const_iterator begin () const
std::vector< STPath >::const_iterator end () const
std::vector< STPath >::size_type size () const
bool empty () const
void pushBack (STPath const &e)
template<typename... Args>
void emplaceBack (Args &&... args)
bool operator== (STBase const &t) const
bool operator!= (STBase const &t) const
template<class D>
D & downcast ()
template<class D>
D const & downcast () const
template<class D>
D const & downcast () const
virtual std::string getFullText () const
virtual std::string getText () const
void setFName (SField const &n)
 A STBase is a field.
SField const & getFName () const
void addFieldID (Serializer &s) const

Public Attributes

friend Object

Static Protected Member Functions

template<class T>
static STBaseemplace (std::size_t n, void *buf, T &&val)

Private Member Functions

STBasecopy (std::size_t n, void *buf) const override
STBasemove (std::size_t n, void *buf) override

Static Private Member Functions

static auto & getCounter () noexcept

Private Attributes

std::vector< STPathvalue_
SField const * fName_

Friends

class detail::STVar

Detailed Description

Definition at line 174 of file STPathSet.h.

Constructor & Destructor Documentation

◆ STPathSet() [1/3]

xrpl::STPathSet::STPathSet ( )
default

◆ STPathSet() [2/3]

xrpl::STPathSet::STPathSet ( SField const & n)

Definition at line 498 of file STPathSet.h.

◆ STPathSet() [3/3]

xrpl::STPathSet::STPathSet ( SerialIter & sit,
SField const & name )

Definition at line 53 of file STPathSet.cpp.

Member Function Documentation

◆ add()

void xrpl::STPathSet::add ( Serializer & s) const
overridevirtual

Reimplemented from xrpl::STBase.

Definition at line 222 of file STPathSet.cpp.

◆ getJson()

json::Value xrpl::STPathSet::getJson ( JsonOptions options) const
nodiscardoverridevirtual

Reimplemented from xrpl::STBase.

Definition at line 206 of file STPathSet.cpp.

◆ getSType()

SerializedTypeID xrpl::STPathSet::getSType ( ) const
nodiscardoverridevirtual

Reimplemented from xrpl::STBase.

Definition at line 216 of file STPathSet.cpp.

◆ assembleAdd()

bool xrpl::STPathSet::assembleAdd ( STPath const & base,
STPathElement const & tail )

Definition at line 126 of file STPathSet.cpp.

◆ isEquivalent()

bool xrpl::STPathSet::isEquivalent ( STBase const & t) const
nodiscardoverridevirtual

Reimplemented from xrpl::STBase.

Definition at line 147 of file STPathSet.cpp.

◆ isDefault()

bool xrpl::STPathSet::isDefault ( ) const
nodiscardoverridevirtual

Reimplemented from xrpl::STBase.

Definition at line 154 of file STPathSet.cpp.

◆ operator[]() [1/2]

std::vector< STPath >::const_reference xrpl::STPathSet::operator[] ( std::vector< STPath >::size_type n) const

Definition at line 504 of file STPathSet.h.

◆ operator[]() [2/2]

std::vector< STPath >::reference xrpl::STPathSet::operator[] ( std::vector< STPath >::size_type n)

Definition at line 510 of file STPathSet.h.

◆ begin()

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

Definition at line 516 of file STPathSet.h.

◆ end()

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

Definition at line 522 of file STPathSet.h.

◆ size()

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

Definition at line 528 of file STPathSet.h.

◆ empty()

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

Definition at line 534 of file STPathSet.h.

◆ pushBack()

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

Definition at line 540 of file STPathSet.h.

◆ emplaceBack()

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

Definition at line 547 of file STPathSet.h.

◆ copy()

STBase * xrpl::STPathSet::copy ( std::size_t n,
void * buf ) const
overrideprivatevirtual

Reimplemented from xrpl::STBase.

Definition at line 114 of file STPathSet.cpp.

◆ move()

STBase * xrpl::STPathSet::move ( std::size_t n,
void * buf )
overrideprivatevirtual

Reimplemented from xrpl::STBase.

Definition at line 120 of file STPathSet.cpp.

◆ operator==()

bool xrpl::STBase::operator== ( STBase const & t) const
inherited

Definition at line 36 of file STBase.cpp.

◆ operator!=()

bool xrpl::STBase::operator!= ( STBase const & t) const
inherited

Definition at line 42 of file STBase.cpp.

◆ downcast() [1/3]

template<class D>
D & xrpl::STBase::downcast ( )
inherited

Definition at line 195 of file STBase.h.

◆ downcast() [2/3]

template<class D>
D const & xrpl::STBase::downcast ( ) const
inherited

◆ downcast() [3/3]

template<class D>
D const & xrpl::STBase::downcast ( ) const
nodiscardinherited

Definition at line 205 of file STBase.h.

◆ getFullText()

std::string xrpl::STBase::getFullText ( ) const
nodiscardvirtualinherited

Reimplemented in xrpl::STAmount, xrpl::STArray, xrpl::STLedgerEntry, xrpl::STObject, and xrpl::STTx.

Definition at line 66 of file STBase.cpp.

◆ getText()

◆ setFName()

void xrpl::STBase::setFName ( SField const & n)
inherited

A STBase is a field.

This sets the name.

Definition at line 119 of file STBase.cpp.

◆ getFName()

SField const & xrpl::STBase::getFName ( ) const
nodiscardinherited

Definition at line 126 of file STBase.cpp.

◆ addFieldID()

void xrpl::STBase::addFieldID ( Serializer & s) const
inherited

Definition at line 132 of file STBase.cpp.

◆ emplace()

template<class T>
STBase * xrpl::STBase::emplace ( std::size_t n,
void * buf,
T && val )
staticprotectedinherited

Definition at line 215 of file STBase.h.

◆ getCounter()

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

Definition at line 109 of file CountedObject.h.

◆ detail::STVar

friend class detail::STVar
friend

Definition at line 233 of file STPathSet.h.

Member Data Documentation

◆ value_

std::vector<STPath> xrpl::STPathSet::value_
private

Definition at line 176 of file STPathSet.h.

◆ fName_

SField const* xrpl::STBase::fName_
privateinherited

Definition at line 118 of file STBase.h.

◆ Object

Definition at line 134 of file CountedObject.h.