rippled
Classes | Typedefs | Functions | Variables
ripple::detail Namespace Reference

Classes

class  AccountIDTag
 
class  ApplyStateTable
 
class  ApplyViewBase
 
struct  basic_sha512_half_hasher
 Returns the SHA512-Half digest of a message. More...
 
class  BasicFullBelowCache
 Remembers which tree keys have all descendants resident. More...
 
class  CachedViewImpl
 
struct  CashSummary
 
class  CurrencyTag
 
struct  defaultObject_t
 
class  DeferredCredits
 
class  DirectoryTag
 
class  FeatureCollections
 
class  Generator
 Produces a sequence of secp256k1 key pairs. More...
 
struct  is_contiguous_container
 
struct  is_contiguous_container< Container, std::void_t< decltype(std::declval< Container const >().size()), decltype(std::declval< Container const >().data()), typename Container::value_type > >
 
class  LedgerCleaner
 Check the ledger/transaction databases to make sure they have continuity. More...
 
class  LedgerCleanerImp
 
struct  LocalValues
 
struct  MessageHeader
 
class  NodeIDTag
 
struct  nonPresentObject_t
 
class  RawStateTable
 
class  ReadViewFwdIter
 
class  ReadViewFwdRange
 
class  RippledCfgGuard
 Write a rippled config file and remove when done. More...
 
class  STVar
 
class  test_user_type_free
 
class  test_user_type_member
 
class  ValidatorsTxtGuard
 Write a validators.txt file and remove when done. More...
 
class  VotableValue
 
class  Work
 
class  WorkBase
 
class  WorkFile
 
class  WorkPlain
 
class  WorkSSL
 

Typedefs

using response_type = boost::beast::http::response< boost::beast::http::string_body >
 
using seed_pair = std::pair< std::uint64_t, std::uint64_t >
 
template<class Engine , class Result = typename Engine::result_type>
using is_engine = std::is_invocable_r< Result, Engine >
 
template<class T >
using test_hardened_unordered_set = std::unordered_set< T, hardened_hash<> >
 
template<class T >
using test_hardened_unordered_map = std::unordered_map< T, int, hardened_hash<> >
 
template<class T >
using test_hardened_unordered_multiset = std::unordered_multiset< T, hardened_hash<> >
 
template<class T >
using test_hardened_unordered_multimap = std::unordered_multimap< T, int, hardened_hash<> >
 

Functions

std::unique_ptr< LedgerCleanermake_LedgerCleaner (Application &app, Stoppable &parent, beast::Journal journal)
 
constexpr static std::pair< bool, std::uint64_tsumOfFirstSquares (std::size_t xIn)
 
std::string toString (LedgerInfo const &info)
 Convenience function for printing out basic ledger info. More...
 
template<bool = true>
seed_pair make_seed_pair () noexcept
 
void accessViolation () noexcept
 
template<class = void>
boost::thread_specific_ptr< detail::LocalValues > & getLocalValues ()
 
std::pair< std::string, soci::backend_factory const & > getSociSqliteInit (std::string const &name, std::string const &dir, std::string const &ext)
 
std::pair< std::string, soci::backend_factory const & > getSociInit (BasicConfig const &config, std::string const &dbName)
 
CashDiff cashFlowDiff (CashFilter lhsFilter, ApplyViewBase const &lhs, CashFilter rhsFilter, ApplyViewBase const &rhs)
 
static bool treatZeroOfferAsDeletion (CashSummary &result, bool isDelete, std::shared_ptr< SLE const > const &before, std::shared_ptr< SLE const > const &after)
 
static bool getBasicCashFlow (CashSummary &result, bool isDelete, std::shared_ptr< SLE const > const &before, std::shared_ptr< SLE const > const &after)
 
static CashSummary getCashFlow (ReadView const &view, CashFilter f, ApplyStateTable const &table)
 
template<typename BufferSequence >
auto buffersBegin (BufferSequence const &bufs)
 
template<typename BufferSequence >
auto buffersEnd (BufferSequence const &bufs)
 
template<class BufferSequence >
std::optional< MessageHeaderparseMessageHeader (boost::system::error_code &ec, BufferSequence const &bufs, std::size_t size)
 Parse a message header. More...
 
template<class T , class Buffers , class = std::enable_if_t< std::is_base_of<::google::protobuf::Message, T>::value>>
std::shared_ptr< T > parseMessageContent (MessageHeader const &header, Buffers const &buffers)
 
template<class T , class Buffers , class Handler , class = std::enable_if_t< std::is_base_of<::google::protobuf::Message, T>::value>>
bool invoke (MessageHeader const &header, Buffers const &buffers, Handler &handler)
 
std::vector< std::string > const & supportedAmendments ()
 Amendments that this server supports, but doesn't enable by default. More...
 
constexpr std::uint32_t make_hash_prefix (char a, char b, char c)
 
STAmount as_amount (Rate const &rate)
 
void copy_uint32 (std::uint8_t *out, std::uint32_t v)
 
uint256 deriveDeterministicRootKey (Seed const &seed)
 
template<class T , class... Args>
STVar make_stvar (Args &&... args)
 
bool operator== (STVar const &lhs, STVar const &rhs)
 
bool operator!= (STVar const &lhs, STVar const &rhs)
 
static std::unordered_map< TERUnderlyingType, std::pair< char const *const, char const *const > > const & transResults ()
 
static std::string encodeBase58 (void const *message, std::size_t size, void *temp, std::size_t temp_size)
 
static std::string decodeBase58 (std::string const &s)
 
std::string configContents (std::string const &dbPath, std::string const &validatorsFile)
 
std::string valFileContents ()
 

Variables

defaultObject_t defaultObject
 
nonPresentObject_t nonPresentObject
 
constexpr std::string_view isoCharSet
 
constexpr std::size_t isoCodeOffset = 12
 
constexpr std::size_t isoCodeLength = 3
 

Typedef Documentation

◆ response_type

using ripple::detail::response_type = typedef boost::beast::http::response<boost::beast::http::string_body>

Definition at line 31 of file Work.h.

◆ seed_pair

Definition at line 39 of file hardened_hash.h.

◆ is_engine

template<class Engine , class Result = typename Engine::result_type>
using ripple::detail::is_engine = typedef std::is_invocable_r<Result, Engine>

Definition at line 51 of file ripple/basics/random.h.

◆ test_hardened_unordered_set

Definition at line 83 of file hardened_hash_test.cpp.

◆ test_hardened_unordered_map

template<class T >
using ripple::detail::test_hardened_unordered_map = typedef std::unordered_map<T, int, hardened_hash<> >

Definition at line 86 of file hardened_hash_test.cpp.

◆ test_hardened_unordered_multiset

Definition at line 90 of file hardened_hash_test.cpp.

◆ test_hardened_unordered_multimap

Definition at line 94 of file hardened_hash_test.cpp.

Function Documentation

◆ make_LedgerCleaner()

std::unique_ptr< LedgerCleaner > ripple::detail::make_LedgerCleaner ( Application app,
Stoppable parent,
beast::Journal  journal 
)

Definition at line 490 of file LedgerCleaner.cpp.

◆ sumOfFirstSquares()

constexpr static std::pair<bool, std::uint64_t> ripple::detail::sumOfFirstSquares ( std::size_t  xIn)
staticconstexpr

Definition at line 193 of file TxQ.cpp.

◆ toString()

std::string ripple::detail::toString ( LedgerInfo const &  info)

Convenience function for printing out basic ledger info.

Definition at line 40 of file ReportingETL.cpp.

◆ make_seed_pair()

template<bool = true>
seed_pair ripple::detail::make_seed_pair ( )
noexcept

Definition at line 43 of file hardened_hash.h.

◆ accessViolation()

void ripple::detail::accessViolation ( )
noexcept

Definition at line 31 of file contract.cpp.

◆ getLocalValues()

template<class = void>
boost::thread_specific_ptr<detail::LocalValues>& ripple::detail::getLocalValues ( )

Definition at line 74 of file LocalValue.h.

◆ getSociSqliteInit()

std::pair<std::string, soci::backend_factory const&> ripple::detail::getSociSqliteInit ( std::string const &  name,
std::string const &  dir,
std::string const &  ext 
)

Definition at line 42 of file SociDB.cpp.

◆ getSociInit()

std::pair<std::string, soci::backend_factory const&> ripple::detail::getSociInit ( BasicConfig const &  config,
std::string const &  dbName 
)

Definition at line 60 of file SociDB.cpp.

◆ cashFlowDiff()

CashDiff ripple::detail::cashFlowDiff ( CashFilter  lhsFilter,
ApplyViewBase const &  lhs,
CashFilter  rhsFilter,
ApplyViewBase const &  rhs 
)

Definition at line 181 of file ApplyViewBase.cpp.

◆ treatZeroOfferAsDeletion()

static bool ripple::detail::treatZeroOfferAsDeletion ( CashSummary result,
bool  isDelete,
std::shared_ptr< SLE const > const &  before,
std::shared_ptr< SLE const > const &  after 
)
static

Definition at line 111 of file CashDiff.cpp.

◆ getBasicCashFlow()

static bool ripple::detail::getBasicCashFlow ( CashSummary result,
bool  isDelete,
std::shared_ptr< SLE const > const &  before,
std::shared_ptr< SLE const > const &  after 
)
static

Definition at line 159 of file CashDiff.cpp.

◆ getCashFlow()

static CashSummary ripple::detail::getCashFlow ( ReadView const &  view,
CashFilter  f,
ApplyStateTable const &  table 
)
static

Definition at line 249 of file CashDiff.cpp.

◆ buffersBegin()

template<typename BufferSequence >
auto ripple::detail::buffersBegin ( BufferSequence const &  bufs)

Definition at line 149 of file ProtocolMessage.h.

◆ buffersEnd()

template<typename BufferSequence >
auto ripple::detail::buffersEnd ( BufferSequence const &  bufs)

Definition at line 157 of file ProtocolMessage.h.

◆ parseMessageHeader()

template<class BufferSequence >
std::optional<MessageHeader> ripple::detail::parseMessageHeader ( boost::system::error_code &  ec,
BufferSequence const &  bufs,
std::size_t  size 
)

Parse a message header.

Returns
a seated optional if the message header was successfully parsed. An unseated optional otherwise, in which case
Parameters
eccontains more information:
  • set to errc::success if not enough bytes were present
  • set to errc::no_message if a valid header was not present @bufs - sequence of input buffers, can't be empty @size input data size

Definition at line 174 of file ProtocolMessage.h.

◆ parseMessageContent()

template<class T , class Buffers , class = std::enable_if_t< std::is_base_of<::google::protobuf::Message, T>::value>>
std::shared_ptr<T> ripple::detail::parseMessageContent ( MessageHeader const &  header,
Buffers const &  buffers 
)

Definition at line 269 of file ProtocolMessage.h.

◆ invoke()

template<class T , class Buffers , class Handler , class = std::enable_if_t< std::is_base_of<::google::protobuf::Message, T>::value>>
bool ripple::detail::invoke ( MessageHeader const &  header,
Buffers const &  buffers,
Handler &  handler 
)

Definition at line 304 of file ProtocolMessage.h.

◆ supportedAmendments()

std::vector< std::string > const & ripple::detail::supportedAmendments ( )

Amendments that this server supports, but doesn't enable by default.

Definition at line 81 of file Feature.cpp.

◆ make_hash_prefix()

constexpr std::uint32_t ripple::detail::make_hash_prefix ( char  a,
char  b,
char  c 
)
constexpr

Definition at line 31 of file HashPrefix.h.

◆ as_amount()

STAmount ripple::detail::as_amount ( Rate const &  rate)

Definition at line 30 of file Rate2.cpp.

◆ copy_uint32()

void ripple::detail::copy_uint32 ( std::uint8_t out,
std::uint32_t  v 
)

Definition at line 59 of file SecretKey.cpp.

◆ deriveDeterministicRootKey()

uint256 ripple::detail::deriveDeterministicRootKey ( Seed const &  seed)

Definition at line 68 of file SecretKey.cpp.

◆ make_stvar()

template<class T , class... Args>
STVar ripple::detail::make_stvar ( Args &&...  args)

Definition at line 143 of file STVar.h.

◆ operator==()

bool ripple::detail::operator== ( STVar const &  lhs,
STVar const &  rhs 
)

Definition at line 151 of file STVar.h.

◆ operator!=()

bool ripple::detail::operator!= ( STVar const &  lhs,
STVar const &  rhs 
)

Definition at line 157 of file STVar.h.

◆ transResults()

static std::unordered_map< TERUnderlyingType, std::pair<char const* const, char const* const> > const& ripple::detail::transResults ( )
static

Definition at line 32 of file TER.cpp.

◆ encodeBase58()

static std::string ripple::detail::encodeBase58 ( void const *  message,
std::size_t  size,
void *  temp,
std::size_t  temp_size 
)
static

Definition at line 99 of file tokens.cpp.

◆ decodeBase58()

static std::string ripple::detail::decodeBase58 ( std::string const &  s)
static

Definition at line 150 of file tokens.cpp.

◆ configContents()

std::string ripple::detail::configContents ( std::string const &  dbPath,
std::string const &  validatorsFile 
)

Definition at line 34 of file Config_test.cpp.

◆ valFileContents()

std::string ripple::detail::valFileContents ( )

Definition at line 206 of file Config_test.cpp.

Variable Documentation

◆ defaultObject

defaultObject_t ripple::detail::defaultObject

Definition at line 36 of file STVar.cpp.

◆ nonPresentObject

nonPresentObject_t ripple::detail::nonPresentObject

Definition at line 37 of file STVar.cpp.

◆ isoCharSet

constexpr std::string_view ripple::detail::isoCharSet
constexpr
Initial value:
=
"abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"0123456789"
"<>(){}[]|?!@#$%^&*"

Definition at line 35 of file UintTypes.cpp.

◆ isoCodeOffset

constexpr std::size_t ripple::detail::isoCodeOffset = 12
constexpr

Definition at line 42 of file UintTypes.cpp.

◆ isoCodeLength

constexpr std::size_t ripple::detail::isoCodeLength = 3
constexpr

Definition at line 45 of file UintTypes.cpp.