rippled
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
ripple::STInteger< Integer > Class Template Reference

#include <STInteger.h>

Inheritance diagram for ripple::STInteger< Integer >:
Inheritance graph
[legend]
Collaboration diagram for ripple::STInteger< Integer >:
Collaboration graph
[legend]

Public Types

using value_type = Integer
 

Public Member Functions

 STInteger (Integer v)
 
 STInteger (SField const &n, Integer v=0)
 
 STInteger (SerialIter &sit, SField const &name)
 
SerializedTypeID getSType () const override
 
Json::Value getJson (JsonOptions) const override
 
std::string getText () const override
 
void add (Serializer &s) const override
 
bool isDefault () const override
 
bool isEquivalent (STBase const &t) const override
 
STIntegeroperator= (value_type const &v)
 
value_type value () const noexcept
 
void setValue (Integer v)
 
 operator Integer () const
 
 STInteger (SerialIter &sit, SField const &name)
 
 STInteger (SerialIter &sit, SField const &name)
 
 STInteger (SerialIter &sit, SField const &name)
 
 STInteger (SerialIter &sit, SField const &name)
 
 STInteger (SerialIter &sit, SField const &name)
 
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
 
void setFName (SField const &n)
 A STBase is a field.
 
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

Integer value_
 
SField const * fName
 

Friends

class ripple::detail::STVar
 

Detailed Description

template<typename Integer>
class ripple::STInteger< Integer >

Definition at line 29 of file STInteger.h.

Member Typedef Documentation

◆ value_type

template<typename Integer >
using ripple::STInteger< Integer >::value_type = Integer

Definition at line 32 of file STInteger.h.

Constructor & Destructor Documentation

◆ STInteger() [1/8]

template<typename Integer >
ripple::STInteger< Integer >::STInteger ( Integer  v)
explicit

Definition at line 87 of file STInteger.h.

◆ STInteger() [2/8]

template<typename Integer >
ripple::STInteger< Integer >::STInteger ( SField const &  n,
Integer  v = 0 
)

Definition at line 92 of file STInteger.h.

◆ STInteger() [3/8]

template<typename Integer >
ripple::STInteger< Integer >::STInteger ( SerialIter sit,
SField const &  name 
)

◆ STInteger() [4/8]

ripple::STInteger< unsignedchar >::STInteger ( SerialIter sit,
SField const &  name 
)

Definition at line 42 of file STInteger.cpp.

◆ STInteger() [5/8]

ripple::STInteger< std::uint16_t >::STInteger ( SerialIter sit,
SField const &  name 
)

Definition at line 97 of file STInteger.cpp.

◆ STInteger() [6/8]

ripple::STInteger< std::uint32_t >::STInteger ( SerialIter sit,
SField const &  name 
)

Definition at line 162 of file STInteger.cpp.

◆ STInteger() [7/8]

ripple::STInteger< std::uint64_t >::STInteger ( SerialIter sit,
SField const &  name 
)

Definition at line 206 of file STInteger.cpp.

◆ STInteger() [8/8]

ripple::STInteger< std::int32_t >::STInteger ( SerialIter sit,
SField const &  name 
)

Definition at line 255 of file STInteger.cpp.

Member Function Documentation

◆ getSType()

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

Reimplemented from ripple::STBase.

Definition at line 49 of file STInteger.cpp.

◆ getJson()

Json::Value ripple::STInt32::getJson ( JsonOptions  ) const
overridevirtual

Reimplemented from ripple::STBase.

Definition at line 76 of file STInteger.cpp.

◆ getText()

std::string ripple::STInt32::getText ( ) const
overridevirtual

Reimplemented from ripple::STBase.

Definition at line 56 of file STInteger.cpp.

◆ add()

template<typename Integer >
void ripple::STInteger< Integer >::add ( Serializer s) const
overridevirtual

Reimplemented from ripple::STBase.

Definition at line 113 of file STInteger.h.

◆ isDefault()

template<typename Integer >
bool ripple::STInteger< Integer >::isDefault ( ) const
overridevirtual

Reimplemented from ripple::STBase.

Definition at line 125 of file STInteger.h.

◆ isEquivalent()

template<typename Integer >
bool ripple::STInteger< Integer >::isEquivalent ( STBase const &  t) const
overridevirtual

Reimplemented from ripple::STBase.

Definition at line 132 of file STInteger.h.

◆ operator=()

template<typename Integer >
STInteger< Integer > & ripple::STInteger< Integer >::operator= ( value_type const &  v)

Definition at line 140 of file STInteger.h.

◆ value()

template<typename Integer >
STInteger< Integer >::value_type ripple::STInteger< Integer >::value ( ) const
noexcept

Definition at line 148 of file STInteger.h.

◆ setValue()

template<typename Integer >
void ripple::STInteger< Integer >::setValue ( Integer  v)

Definition at line 155 of file STInteger.h.

◆ operator Integer()

template<typename Integer >
ripple::STInteger< Integer >::operator Integer ( ) const

Definition at line 161 of file STInteger.h.

◆ copy()

template<typename Integer >
STBase * ripple::STInteger< Integer >::copy ( std::size_t  n,
void *  buf 
) const
overrideprivatevirtual

Reimplemented from ripple::STBase.

Definition at line 99 of file STInteger.h.

◆ move()

template<typename Integer >
STBase * ripple::STInteger< Integer >::move ( std::size_t  n,
void *  buf 
)
overrideprivatevirtual

Reimplemented from ripple::STBase.

Definition at line 106 of file STInteger.h.

◆ operator==()

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

Definition at line 51 of file STBase.cpp.

◆ operator!=()

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

Definition at line 57 of file STBase.cpp.

◆ downcast() [1/3]

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

Definition at line 213 of file STBase.h.

◆ downcast() [2/3]

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

◆ downcast() [3/3]

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

Definition at line 223 of file STBase.h.

◆ getFullText()

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

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

Definition at line 81 of file STBase.cpp.

◆ setFName()

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

A STBase is a field.

This sets the name.

Definition at line 136 of file STBase.cpp.

◆ getFName()

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

Definition at line 143 of file STBase.cpp.

◆ addFieldID()

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

Definition at line 149 of file STBase.cpp.

◆ emplace()

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

Definition at line 233 of file STBase.h.

◆ getCounter()

static auto & ripple::CountedObject< STInteger< Integer > >::getCounter ( )
staticprivatenoexceptinherited

Definition at line 129 of file CountedObject.h.

Friends And Related Symbol Documentation

◆ ripple::detail::STVar

template<typename Integer >
friend class ripple::detail::STVar
friend

Definition at line 76 of file STInteger.h.

Member Data Documentation

◆ value_

template<typename Integer >
Integer ripple::STInteger< Integer >::value_
private

Definition at line 35 of file STInteger.h.

◆ fName

SField const* ripple::STBase::fName
privateinherited

Definition at line 136 of file STBase.h.