rippled
Public Member Functions | Static Protected Member Functions | Protected Attributes | Private Attributes | List of all members
ripple::STPathSet Class Referencefinal
Inheritance diagram for ripple::STPathSet:
Inheritance graph
[legend]
Collaboration diagram for ripple::STPathSet:
Collaboration graph
[legend]

Public Member Functions

 STPathSet ()=default
 
 STPathSet (SField const &n)
 
 STPathSet (SerialIter &sit, SField const &name)
 
STBasecopy (std::size_t n, void *buf) const override
 
STBasemove (std::size_t n, void *buf) override
 
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 (const STBase &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 push_back (STPath const &e)
 
template<typename... Args>
void emplace_back (Args &&... args)
 
bool operator== (const STBase &t) const
 
bool operator!= (const STBase &t) const
 
template<class D >
D & downcast ()
 
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. More...
 
SField const & getFName () const
 
void addFieldID (Serializer &s) const
 

Static Protected Member Functions

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

Protected Attributes

SField const * fName
 

Private Attributes

std::vector< STPathvalue
 

Detailed Description

Definition at line 309 of file STPathSet.h.

Constructor & Destructor Documentation

◆ STPathSet() [1/3]

ripple::STPathSet::STPathSet ( )
default

◆ STPathSet() [2/3]

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

Definition at line 314 of file STPathSet.h.

◆ STPathSet() [3/3]

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

Definition at line 52 of file STPathSet.cpp.

Member Function Documentation

◆ copy()

STBase* ripple::STPathSet::copy ( std::size_t  n,
void *  buf 
) const
overridevirtual

Reimplemented from ripple::STBase.

Definition at line 321 of file STPathSet.h.

◆ move()

STBase* ripple::STPathSet::move ( std::size_t  n,
void *  buf 
)
overridevirtual

Reimplemented from ripple::STBase.

Definition at line 327 of file STPathSet.h.

◆ add()

void ripple::STPathSet::add ( Serializer s) const
overridevirtual

Reimplemented from ripple::STBase.

Definition at line 185 of file STPathSet.cpp.

◆ getJson()

Json::Value ripple::STPathSet::getJson ( JsonOptions  options) const
overridevirtual

Reimplemented from ripple::STBase.

Definition at line 175 of file STPathSet.cpp.

◆ getSType()

SerializedTypeID ripple::STPathSet::getSType ( ) const
overridevirtual

Reimplemented from ripple::STBase.

Definition at line 338 of file STPathSet.h.

◆ assembleAdd()

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

Definition at line 105 of file STPathSet.cpp.

◆ isEquivalent()

bool ripple::STPathSet::isEquivalent ( const STBase t) const
overridevirtual

Reimplemented from ripple::STBase.

Definition at line 126 of file STPathSet.cpp.

◆ isDefault()

bool ripple::STPathSet::isDefault ( ) const
overridevirtual

Reimplemented from ripple::STBase.

Definition at line 350 of file STPathSet.h.

◆ operator[]() [1/2]

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

Definition at line 357 of file STPathSet.h.

◆ operator[]() [2/2]

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

Definition at line 363 of file STPathSet.h.

◆ begin()

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

Definition at line 369 of file STPathSet.h.

◆ end()

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

Definition at line 375 of file STPathSet.h.

◆ size()

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

Definition at line 381 of file STPathSet.h.

◆ empty()

bool ripple::STPathSet::empty ( ) const

Definition at line 387 of file STPathSet.h.

◆ push_back()

void ripple::STPathSet::push_back ( STPath const &  e)

Definition at line 393 of file STPathSet.h.

◆ emplace_back()

template<typename... Args>
void ripple::STPathSet::emplace_back ( Args &&...  args)

Definition at line 400 of file STPathSet.h.

◆ operator==()

bool ripple::STBase::operator== ( const STBase t) const
inherited

Definition at line 45 of file STBase.cpp.

◆ operator!=()

bool ripple::STBase::operator!= ( const STBase t) const
inherited

Definition at line 51 of file STBase.cpp.

◆ downcast() [1/2]

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

Definition at line 94 of file STBase.h.

◆ downcast() [2/2]

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

Definition at line 104 of file STBase.h.

◆ getFullText()

std::string ripple::STBase::getFullText ( ) const
virtualinherited

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

Definition at line 63 of file STBase.cpp.

◆ getText()

std::string ripple::STBase::getText ( ) const
virtualinherited

◆ setFName()

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

A STBase is a field.

This sets the name.

Definition at line 113 of file STBase.cpp.

◆ getFName()

SField const & ripple::STBase::getFName ( ) const
inherited

Definition at line 120 of file STBase.cpp.

◆ addFieldID()

void ripple::STBase::addFieldID ( Serializer s) const
inherited

Definition at line 126 of file STBase.cpp.

◆ emplace()

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

Definition at line 149 of file STBase.h.

Member Data Documentation

◆ value

std::vector<STPath> ripple::STPathSet::value
private

Definition at line 406 of file STPathSet.h.

◆ fName

SField const* ripple::STBase::fName
protectedinherited

Definition at line 145 of file STBase.h.