rippled
Public Member Functions | Static Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | 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)
 
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)
 

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 176 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 467 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

◆ add()

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

Reimplemented from ripple::STBase.

Definition at line 209 of file STPathSet.cpp.

◆ getJson()

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

Reimplemented from ripple::STBase.

Definition at line 193 of file STPathSet.cpp.

◆ getSType()

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

Reimplemented from ripple::STBase.

Definition at line 203 of file STPathSet.cpp.

◆ assembleAdd()

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

Definition at line 117 of file STPathSet.cpp.

◆ isEquivalent()

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

Reimplemented from ripple::STBase.

Definition at line 138 of file STPathSet.cpp.

◆ isDefault()

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

Reimplemented from ripple::STBase.

Definition at line 145 of file STPathSet.cpp.

◆ operator[]() [1/2]

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

Definition at line 473 of file STPathSet.h.

◆ operator[]() [2/2]

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

Definition at line 479 of file STPathSet.h.

◆ begin()

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

Definition at line 485 of file STPathSet.h.

◆ end()

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

Definition at line 491 of file STPathSet.h.

◆ size()

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

Definition at line 497 of file STPathSet.h.

◆ empty()

bool ripple::STPathSet::empty ( ) const

Definition at line 503 of file STPathSet.h.

◆ push_back()

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

Definition at line 509 of file STPathSet.h.

◆ emplace_back()

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

Definition at line 516 of file STPathSet.h.

◆ copy()

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

Reimplemented from ripple::STBase.

Definition at line 105 of file STPathSet.cpp.

◆ move()

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

Reimplemented from ripple::STBase.

Definition at line 111 of file STPathSet.cpp.

◆ 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 145 of file STBase.h.

◆ downcast() [2/2]

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

Definition at line 155 of file STBase.h.

◆ getFullText()

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

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

Definition at line 75 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 125 of file STBase.cpp.

◆ getFName()

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

Definition at line 132 of file STBase.cpp.

◆ addFieldID()

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

Definition at line 138 of file STBase.cpp.

◆ emplace()

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

Definition at line 165 of file STBase.h.

◆ getCounter()

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

Definition at line 128 of file CountedObject.h.

Friends And Related Function Documentation

◆ detail::STVar

friend class detail::STVar
friend

Definition at line 235 of file STPathSet.h.

Member Data Documentation

◆ value

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

Definition at line 178 of file STPathSet.h.

◆ fName

SField const* ripple::STBase::fName
privateinherited

Definition at line 68 of file STBase.h.