xrpld
Loading...
Searching...
No Matches
beast Namespace Reference

Namespaces

namespace  detail
namespace  insight
namespace  IP
namespace  rfc2616
namespace  test
namespace  unit_test
namespace  inner_adl_test

Classes

struct  IsUniquelyRepresented< xrpl::BaseUInt< Bits, Tag > >
struct  IsContiguouslyHashable< xrpl::TaggedInteger< Int, Tag >, HashAlgorithm >
class  IOLatencyProbe
 Measures handler latency on an io_context queue. More...
class  AbstractClock
 Abstract interface to a clock. More...
class  BasicSecondsClock
 A clock whose minimum resolution is one second. More...
class  ManualClock
 Manual clock implementation. More...
struct  IsAgedContainer
class  aged_ordered_container
struct  IsAgedContainer< beast::detail::AgedOrderedContainer< IsMulti, IsMap, Key, T, Clock, Compare, Allocator > >
struct  IsAgedContainer< beast::detail::AgedUnorderedContainer< IsMulti, IsMap, Key, T, Clock, Hash, KeyEqual, Allocator > >
struct  BadLexicalCast
 Thrown when a conversion is not possible with LexicalCast. More...
class  List
 Intrusive doubly linked list. More...
class  LockFreeStackIterator
class  LockFreeStack
 Multiple Producer, Multiple Consumer (MPMC) intrusive stack. More...
class  SemanticVersion
 A Semantic Version number. More...
struct  IsUniquelyRepresented
struct  IsUniquelyRepresented< T const >
struct  IsUniquelyRepresented< T volatile >
struct  IsUniquelyRepresented< T const volatile >
struct  IsUniquelyRepresented< std::pair< T, U > >
struct  IsUniquelyRepresented< std::tuple< T... > >
struct  IsUniquelyRepresented< T[N]>
struct  IsUniquelyRepresented< std::array< T, N > >
struct  IsContiguouslyHashable
 Metafunction returning true if the type can be hashed in one call. More...
struct  IsContiguouslyHashable< T[N], HashAlgorithm >
struct  Uhash
class  Xxhasher
struct  IPAddressConversion
class  Journal
 A generic endpoint for log messages. More...
class  BasicLogstream
struct  MaybeConst
 Makes T const or non const depending on a bool. More...
class  PropertyStream
 Abstract stream with RAII containers that produce a property tree. More...
class  TempDir
 RAII temporary directory. More...
class  WrappedSink
 Wraps a Journal::Sink to prefix its output with a string. More...
struct  Zero
 Zero allows classes to offer efficient comparisons to zero. More...
class  NullJournalSink
class  AgedAssociativeContainerTestBase
class  aged_set_test
class  aged_map_test
class  aged_multiset_test
class  aged_multimap_test
class  aged_unordered_set_test
class  aged_unordered_map_test
class  aged_unordered_multiset_test
class  aged_unordered_multimap_test
class  abstract_clock_test
class  BasicSecondsClock_test
class  Journal_test
class  PropertyStream_test
struct  AdlTester
class  Zero_test
class  LexicalCast_test
class  SemanticVersion_test
class  XXHasher_test
struct  Leftw
 Left justifies a field at the specified width. More...
struct  Divider
 Produce a dashed line separator, with a specified or default size. More...
struct  Fpad
 Creates a padded field with an optional fill character. More...
class  FieldT
 Justifies a field at the specified width. More...

Typedefs

template<class Key, class T, class Clock = std::chrono::steady_clock, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key const, T>>>
using aged_map = detail::AgedOrderedContainer<false, true, Key, T, Clock, Compare, Allocator>
template<class Key, class T, class Clock = std::chrono::steady_clock, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key const, T>>>
using aged_multimap = detail::AgedOrderedContainer<true, true, Key, T, Clock, Compare, Allocator>
template<class Key, class Clock = std::chrono::steady_clock, class Compare = std::less<Key>, class Allocator = std::allocator<Key>>
using aged_multiset
template<class Key, class Clock = std::chrono::steady_clock, class Compare = std::less<Key>, class Allocator = std::allocator<Key>>
using aged_set = detail::AgedOrderedContainer<false, false, Key, void, Clock, Compare, Allocator>
template<class Key, class T, class Clock = std::chrono::steady_clock, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>, class Allocator = std::allocator<std::pair<Key const, T>>>
using aged_unordered_map
template<class Key, class T, class Clock = std::chrono::steady_clock, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>, class Allocator = std::allocator<std::pair<Key const, T>>>
using aged_unordered_multimap
template<class Key, class Clock = std::chrono::steady_clock, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>, class Allocator = std::allocator<Key>>
using aged_unordered_multiset
template<class Key, class Clock = std::chrono::steady_clock, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>, class Allocator = std::allocator<Key>>
using aged_unordered_set
using logstream = BasicLogstream<char>
using logwstream = BasicLogstream<wchar_t>
template<bool IsConst, class T>
using maybe_const_t = MaybeConst<IsConst, T>::type
 Alias for omitting typename.
using xor_shift_engine = detail::XorShiftEngine<>
 XOR-shift Generator.

Enumerations

enum class  Severity : std::uint8_t {
  All = 0 , Trace = All , Debug = 1 , Info = 2 ,
  Warning = 3 , Error = 4 , Fatal = 5 , Disabled = 6 ,
  None = Disabled
}
 Severity level / threshold of a Journal message. More...

Functions

template<class Facade, class Clock = Facade>
AbstractClock< Facade > & getAbstractClock ()
 Returns a global instance of an abstract clock.
template<class AgedContainer, class Rep, class Period>
std::enable_if_t< IsAgedContainer< AgedContainer >::value, std::size_texpire (AgedContainer &c, std::chrono::duration< Rep, Period > const &age)
 Expire aged container items past the specified age.
template<bool IsMulti, bool IsMap, class Key, class T, class Clock, class Compare, class Allocator>
void swap (beast::detail::AgedOrderedContainer< IsMulti, IsMap, Key, T, Clock, Compare, Allocator > &lhs, beast::detail::AgedOrderedContainer< IsMulti, IsMap, Key, T, Clock, Compare, Allocator > &rhs) noexcept
template<bool IsMulti, bool IsMap, class Key, class T, class Clock, class Compare, class Allocator, class Rep, class Period>
std::size_t expire (detail::AgedOrderedContainer< IsMulti, IsMap, Key, T, Clock, Compare, Allocator > &c, std::chrono::duration< Rep, Period > const &age)
 Expire aged container items past the specified age.
template<bool IsMulti, bool IsMap, class Key, class T, class Clock, class Hash, class KeyEqual, class Allocator>
void swap (beast::detail::AgedUnorderedContainer< IsMulti, IsMap, Key, T, Clock, Hash, KeyEqual, Allocator > &lhs, beast::detail::AgedUnorderedContainer< IsMulti, IsMap, Key, T, Clock, Hash, KeyEqual, Allocator > &rhs) noexcept
template<bool IsMulti, bool IsMap, class Key, class T, class Clock, class Hash, class KeyEqual, class Allocator, class Rep, class Period>
std::size_t expire (beast::detail::AgedUnorderedContainer< IsMulti, IsMap, Key, T, Clock, Hash, KeyEqual, Allocator > &c, std::chrono::duration< Rep, Period > const &age) noexcept
 Expire aged container items past the specified age.
void setCurrentThreadName (std::string_view newThreadName)
 Changes the name of the caller thread.
std::string getCurrentThreadName ()
 Returns the name of the caller thread.
template<class Out, class In>
bool lexicalCastChecked (Out &out, In in)
 Intelligently convert from one type to another.
template<class Out, class In>
Out lexicalCastThrow (In in)
 Convert from one type to another, throw on error.
template<class Out, class In>
Out lexicalCast (In in, Out defaultValue=Out())
 Convert from one type to another.
template<class Container, bool LhsIsConst, bool RhsIsConst>
bool operator== (LockFreeStackIterator< Container, LhsIsConst > const &lhs, LockFreeStackIterator< Container, RhsIsConst > const &rhs)
template<class Container, bool LhsIsConst, bool RhsIsConst>
bool operator!= (LockFreeStackIterator< Container, LhsIsConst > const &lhs, LockFreeStackIterator< Container, RhsIsConst > const &rhs)
int compare (SemanticVersion const &lhs, SemanticVersion const &rhs)
 Compare two SemanticVersions against each other.
bool operator== (SemanticVersion const &lhs, SemanticVersion const &rhs)
bool operator!= (SemanticVersion const &lhs, SemanticVersion const &rhs)
bool operator>= (SemanticVersion const &lhs, SemanticVersion const &rhs)
bool operator<= (SemanticVersion const &lhs, SemanticVersion const &rhs)
bool operator> (SemanticVersion const &lhs, SemanticVersion const &rhs)
bool operator< (SemanticVersion const &lhs, SemanticVersion const &rhs)
template<class Hasher>
void hash_append (Hasher &h, beast::IP::Address const &addr) noexcept
template<typename T>
std::string typeName ()
template<class Generator>
void rngfill (void *const buffer, std::size_t const bytes, Generator &g)
template<class Generator, std::size_t N, class = std::enable_if_t<N % sizeof(typename Generator::result_type) == 0>>
void rngfill (std::array< std::uint8_t, N > &a, Generator &g)
template<typename T>
auto signum (T const &t)
 Default implementation of signum calls the method on the class.
template<typename T>
bool operator== (T const &t, Zero)
template<typename T>
bool operator!= (T const &t, Zero)
template<typename T>
bool operator< (T const &t, Zero)
template<typename T>
bool operator> (T const &t, Zero)
template<typename T>
bool operator>= (T const &t, Zero)
template<typename T>
bool operator<= (T const &t, Zero)
template<typename T>
bool operator== (Zero, T const &t)
template<typename T>
bool operator!= (Zero, T const &t)
template<typename T>
bool operator< (Zero, T const &t)
template<typename T>
bool operator> (Zero, T const &t)
template<typename T>
bool operator>= (Zero, T const &t)
template<typename T>
bool operator<= (Zero, T const &t)
std::string printIdentifiers (SemanticVersion::identifier_list const &list)
bool isNumeric (std::string const &s)
bool chop (std::string const &what, std::string &input)
bool chopUInt (int &value, int limit, std::string &input)
bool extractIdentifier (std::string &value, bool allowLeadingZeroes, std::string &input)
bool extractIdentifiers (SemanticVersion::identifier_list &identifiers, bool allowLeadingZeroes, std::string &input)
 BEAST_DEFINE_TESTSUITE (aged_set, beast, beast)
 BEAST_DEFINE_TESTSUITE (aged_map, beast, beast)
 BEAST_DEFINE_TESTSUITE (aged_multiset, beast, beast)
 BEAST_DEFINE_TESTSUITE (aged_multimap, beast, beast)
 BEAST_DEFINE_TESTSUITE (aged_unordered_set, beast, beast)
 BEAST_DEFINE_TESTSUITE (aged_unordered_map, beast, beast)
 BEAST_DEFINE_TESTSUITE (aged_unordered_multiset, beast, beast)
 BEAST_DEFINE_TESTSUITE (aged_unordered_multimap, beast, beast)
 BEAST_DEFINE_TESTSUITE_MANUAL (abstract_clock, beast, beast)
 BEAST_DEFINE_TESTSUITE (BasicSecondsClock, beast, beast)
 BEAST_DEFINE_TESTSUITE (Journal, beast, beast)
 BEAST_DEFINE_TESTSUITE (PropertyStream, beast, beast)
int signum (AdlTester)
 BEAST_DEFINE_TESTSUITE (Zero, beast, beast)
 BEAST_DEFINE_TESTSUITE (LexicalCast, beast, beast)
 BEAST_DEFINE_TESTSUITE (SemanticVersion, beast, beast)
 BEAST_DEFINE_TESTSUITE (XXHasher, beast_core, beast)
template<class CharT, class Traits, class Allocator>
std::basic_string< CharT, Traits, Allocator > heading (std::basic_string< CharT, Traits, Allocator > title, int width=80, CharT fill=CharT('-'))
 Produce a section heading and fill the rest of the line with dashes.
template<class Hasher, class T>
std::enable_if_t< IsContiguouslyHashable< T, Hasher >::value > hash_append (Hasher &h, T const &t) noexcept
 Logically concatenate input data to a Hasher.
template<class Hasher, class T>
std::enable_if_t< !IsContiguouslyHashable< T, Hasher >::value &&(std::is_integral_v< T >||std::is_pointer_v< T >||std::is_enum_v< T >)> hash_append (Hasher &h, T t) noexcept
template<class Hasher, class T>
std::enable_if_t< std::is_floating_point_v< T > > hash_append (Hasher &h, T t) noexcept
template<class Hasher>
void hash_append (Hasher &h, std::nullptr_t) noexcept
template<class Hasher, class T, std::size_t N>
std::enable_if_t<!IsContiguouslyHashable< T, Hasher >::value > hash_append (Hasher &h, T(&a)[N]) noexcept
template<class Hasher, class CharT, class Traits, class Alloc>
std::enable_if_t<!IsContiguouslyHashable< CharT, Hasher >::value > hash_append (Hasher &h, std::basic_string< CharT, Traits, Alloc > const &s) noexcept
template<class Hasher, class CharT, class Traits, class Alloc>
std::enable_if_t< IsContiguouslyHashable< CharT, Hasher >::value > hash_append (Hasher &h, std::basic_string< CharT, Traits, Alloc > const &s) noexcept
template<class Hasher, class T, class U>
std::enable_if_t<!IsContiguouslyHashable< std::pair< T, U >, Hasher >::value > hash_append (Hasher &h, std::pair< T, U > const &p) noexcept
template<class Hasher, class T, class Alloc>
std::enable_if_t<!IsContiguouslyHashable< T, Hasher >::value > hash_append (Hasher &h, std::vector< T, Alloc > const &v) noexcept
template<class Hasher, class T, class Alloc>
std::enable_if_t< IsContiguouslyHashable< T, Hasher >::value > hash_append (Hasher &h, std::vector< T, Alloc > const &v) noexcept
template<class Hasher, class T, std::size_t N>
std::enable_if_t<!IsContiguouslyHashable< std::array< T, N >, Hasher >::value > hash_append (Hasher &h, std::array< T, N > const &a) noexcept
template<class Hasher, class... T>
std::enable_if_t<!IsContiguouslyHashable< std::tuple< T... >, Hasher >::value > hash_append (Hasher &h, std::tuple< T... > const &t) noexcept
template<class Hasher, class Key, class T, class Hash, class Pred, class Alloc>
void hash_append (Hasher &h, std::unordered_map< Key, T, Hash, Pred, Alloc > const &m)
template<class Hasher, class Key, class Hash, class Pred, class Alloc>
void hash_append (Hasher &h, std::unordered_set< Key, Hash, Pred, Alloc > const &s)
template<class Hasher, class Key, class Compare, class Alloc>
std::enable_if_t<!IsContiguouslyHashable< Key, Hasher >::value > hash_append (Hasher &h, boost::container::flat_set< Key, Compare, Alloc > const &v) noexcept
template<class Hasher, class Key, class Compare, class Alloc>
std::enable_if_t< IsContiguouslyHashable< Key, Hasher >::value > hash_append (Hasher &h, boost::container::flat_set< Key, Compare, Alloc > const &v) noexcept
template<class Hasher, class T0, class T1, class... T>
void hash_append (Hasher &h, T0 const &t0, T1 const &t1, T const &... t) noexcept
template<class Hasher, class T>
void hash_append (Hasher &h, std::shared_ptr< T > const &p) noexcept
template<class Hasher, class Rep, class Period>
void hash_append (Hasher &h, std::chrono::duration< Rep, Period > const &d) noexcept
template<class Hasher, class Clock, class Duration>
void hash_append (Hasher &h, std::chrono::time_point< Clock, Duration > const &tp) noexcept
template<class HashAlgorithm>
void hash_append (HashAlgorithm &h, std::error_code const &ec)
template<class CharT, class Traits, class Allocator>
FieldT< CharT, Traits, Allocator > field (std::basic_string< CharT, Traits, Allocator > const &text, int width=8, int pad=0, bool right=false)
template<class CharT>
FieldT< CharT > field (CharT const *text, int width=8, int pad=0, bool right=false)
template<typename T>
FieldT< char > field (T const &t, int width=8, int pad=0, bool right=false)
template<class CharT, class Traits, class Allocator>
FieldT< CharT, Traits, Allocator > rField (std::basic_string< CharT, Traits, Allocator > const &text, int width=8, int pad=0)
template<class CharT>
FieldT< CharT > rField (CharT const *text, int width=8, int pad=0)
template<typename T>
FieldT< char > rField (T const &t, int width=8, int pad=0)

Typedef Documentation

◆ aged_map

template<class Key, class T, class Clock = std::chrono::steady_clock, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key const, T>>>
using beast::aged_map = detail::AgedOrderedContainer<false, true, Key, T, Clock, Compare, Allocator>

Definition at line 17 of file aged_map.h.

◆ aged_multimap

template<class Key, class T, class Clock = std::chrono::steady_clock, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key const, T>>>
using beast::aged_multimap = detail::AgedOrderedContainer<true, true, Key, T, Clock, Compare, Allocator>

Definition at line 17 of file aged_multimap.h.

◆ aged_multiset

template<class Key, class Clock = std::chrono::steady_clock, class Compare = std::less<Key>, class Allocator = std::allocator<Key>>
using beast::aged_multiset
Initial value:

Definition at line 16 of file aged_multiset.h.

◆ aged_set

template<class Key, class Clock = std::chrono::steady_clock, class Compare = std::less<Key>, class Allocator = std::allocator<Key>>
using beast::aged_set = detail::AgedOrderedContainer<false, false, Key, void, Clock, Compare, Allocator>

Definition at line 16 of file aged_set.h.

◆ aged_unordered_map

template<class Key, class T, class Clock = std::chrono::steady_clock, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>, class Allocator = std::allocator<std::pair<Key const, T>>>
using beast::aged_unordered_map
Initial value:

Definition at line 18 of file aged_unordered_map.h.

◆ aged_unordered_multimap

template<class Key, class T, class Clock = std::chrono::steady_clock, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>, class Allocator = std::allocator<std::pair<Key const, T>>>
using beast::aged_unordered_multimap

◆ aged_unordered_multiset

template<class Key, class Clock = std::chrono::steady_clock, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>, class Allocator = std::allocator<Key>>
using beast::aged_unordered_multiset

◆ aged_unordered_set

template<class Key, class Clock = std::chrono::steady_clock, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>, class Allocator = std::allocator<Key>>
using beast::aged_unordered_set

◆ logstream

Definition at line 427 of file Journal.h.

◆ logwstream

Definition at line 428 of file Journal.h.

◆ maybe_const_t

template<bool IsConst, class T>
using beast::maybe_const_t = MaybeConst<IsConst, T>::type

Alias for omitting typename.

Definition at line 18 of file maybe_const.h.

◆ xor_shift_engine

XOR-shift Generator.

Meets the requirements of UniformRandomNumberGenerator.

Simple and fast RNG based on: http://xorshift.di.unimi.it/xorshift128plus.c does not accept seed==0

Definition at line 96 of file xor_shift_engine.h.

Enumeration Type Documentation

◆ Severity

enum class beast::Severity : std::uint8_t
strong

Severity level / threshold of a Journal message.

Enumerator
All 
Trace 
Debug 
Info 
Warning 
Error 
Fatal 
Disabled 
None 

Definition at line 11 of file Journal.h.

Function Documentation

◆ getAbstractClock()

template<class Facade, class Clock = Facade>
AbstractClock< Facade > & beast::getAbstractClock ( )

Returns a global instance of an abstract clock.

Template Parameters
FacadeA type meeting these requirements: http://en.cppreference.com/w/cpp/concept/Clock
ClockThe actual concrete clock to use.

Definition at line 84 of file abstract_clock.h.

◆ expire() [1/3]

template<class AgedContainer, class Rep, class Period>
std::enable_if_t< IsAgedContainer< AgedContainer >::value, std::size_t > beast::expire ( AgedContainer & c,
std::chrono::duration< Rep, Period > const & age )

Expire aged container items past the specified age.

Definition at line 13 of file aged_container_utility.h.

◆ swap() [1/2]

template<bool IsMulti, bool IsMap, class Key, class T, class Clock, class Compare, class Allocator>
void beast::swap ( beast::detail::AgedOrderedContainer< IsMulti, IsMap, Key, T, Clock, Compare, Allocator > & lhs,
beast::detail::AgedOrderedContainer< IsMulti, IsMap, Key, T, Clock, Compare, Allocator > & rhs )
noexcept

Definition at line 1791 of file aged_ordered_container.h.

◆ expire() [2/3]

template<bool IsMulti, bool IsMap, class Key, class T, class Clock, class Compare, class Allocator, class Rep, class Period>
std::size_t beast::expire ( detail::AgedOrderedContainer< IsMulti, IsMap, Key, T, Clock, Compare, Allocator > & c,
std::chrono::duration< Rep, Period > const & age )

Expire aged container items past the specified age.

Definition at line 1811 of file aged_ordered_container.h.

◆ swap() [2/2]

template<bool IsMulti, bool IsMap, class Key, class T, class Clock, class Hash, class KeyEqual, class Allocator>
void beast::swap ( beast::detail::AgedUnorderedContainer< IsMulti, IsMap, Key, T, Clock, Hash, KeyEqual, Allocator > & lhs,
beast::detail::AgedUnorderedContainer< IsMulti, IsMap, Key, T, Clock, Hash, KeyEqual, Allocator > & rhs )
noexcept

Definition at line 2716 of file aged_unordered_container.h.

◆ expire() [3/3]

template<bool IsMulti, bool IsMap, class Key, class T, class Clock, class Hash, class KeyEqual, class Allocator, class Rep, class Period>
std::size_t beast::expire ( beast::detail::AgedUnorderedContainer< IsMulti, IsMap, Key, T, Clock, Hash, KeyEqual, Allocator > & c,
std::chrono::duration< Rep, Period > const & age )
noexcept

Expire aged container items past the specified age.

Definition at line 2738 of file aged_unordered_container.h.

◆ setCurrentThreadName()

void beast::setCurrentThreadName ( std::string_view newThreadName)

Changes the name of the caller thread.

Different OSes may place different length or content limits on this name.

Definition at line 115 of file CurrentThreadName.cpp.

◆ getCurrentThreadName()

std::string beast::getCurrentThreadName ( )

Returns the name of the caller thread.

The name returned is the name as set by a call to setCurrentThreadName(). If the thread name is set by an external force, then that name change will not be reported.

If no name has ever been set, then the empty string is returned.

Definition at line 109 of file CurrentThreadName.cpp.

◆ lexicalCastChecked()

template<class Out, class In>
bool beast::lexicalCastChecked ( Out & out,
In in )

Intelligently convert from one type to another.

Returns
false if there was a parsing or range error

Definition at line 175 of file LexicalCast.h.

◆ lexicalCastThrow()

template<class Out, class In>
Out beast::lexicalCastThrow ( In in)

Convert from one type to another, throw on error.

An exception of type BadLexicalCast is thrown if the conversion fails.

Returns
The new type.

Definition at line 188 of file LexicalCast.h.

◆ lexicalCast()

template<class Out, class In>
Out beast::lexicalCast ( In in,
Out defaultValue = Out() )

Convert from one type to another.

Parameters
defaultValueThe value returned if parsing fails
Returns
The new type.

Definition at line 203 of file LexicalCast.h.

◆ operator==() [1/4]

template<class Container, bool LhsIsConst, bool RhsIsConst>
bool beast::operator== ( LockFreeStackIterator< Container, LhsIsConst > const & lhs,
LockFreeStackIterator< Container, RhsIsConst > const & rhs )

Definition at line 87 of file LockFreeStack.h.

◆ operator!=() [1/4]

template<class Container, bool LhsIsConst, bool RhsIsConst>
bool beast::operator!= ( LockFreeStackIterator< Container, LhsIsConst > const & lhs,
LockFreeStackIterator< Container, RhsIsConst > const & rhs )

Definition at line 96 of file LockFreeStack.h.

◆ compare()

int beast::compare ( SemanticVersion const & lhs,
SemanticVersion const & rhs )

Compare two SemanticVersions against each other.

The comparison follows the rules as per the specification.

Definition at line 236 of file SemanticVersion.cpp.

◆ operator==() [2/4]

bool beast::operator== ( SemanticVersion const & lhs,
SemanticVersion const & rhs )

Definition at line 62 of file SemanticVersion.h.

◆ operator!=() [2/4]

bool beast::operator!= ( SemanticVersion const & lhs,
SemanticVersion const & rhs )

Definition at line 68 of file SemanticVersion.h.

◆ operator>=() [1/3]

bool beast::operator>= ( SemanticVersion const & lhs,
SemanticVersion const & rhs )

Definition at line 74 of file SemanticVersion.h.

◆ operator<=() [1/3]

bool beast::operator<= ( SemanticVersion const & lhs,
SemanticVersion const & rhs )

Definition at line 79 of file SemanticVersion.h.

◆ operator>() [1/3]

bool beast::operator> ( SemanticVersion const & lhs,
SemanticVersion const & rhs )

Definition at line 86 of file SemanticVersion.h.

◆ operator<() [1/3]

bool beast::operator< ( SemanticVersion const & lhs,
SemanticVersion const & rhs )

Definition at line 91 of file SemanticVersion.h.

◆ hash_append() [1/22]

template<class Hasher, class T>
std::enable_if_t< IsContiguouslyHashable< T, Hasher >::value > beast::hash_append ( Hasher & h,
T const & t )
noexcept

Logically concatenate input data to a Hasher.

Hasher requirements:

`X` is the type `Hasher`
`h` is a value of type `x`
`p` is a value convertible to `void const*`
`n` is a value of type `std::size_t`, greater than zero

Expression:
    `h.append (p, n);`
Throws:
    Never
Effect:
    Adds the input data to the hasher state.

Expression:
    `static_cast<std::size_t>(j)`
Throws:
    Never
Effect:
    Returns the resulting hash of all the input data.

Definition at line 204 of file hash_append.h.

◆ hash_append() [2/22]

template<class Hasher, class T>
std::enable_if_t< !IsContiguouslyHashable< T, Hasher >::value &&(std::is_integral_v< T >||std::is_pointer_v< T >||std::is_enum_v< T >)> beast::hash_append ( Hasher & h,
T t )
noexcept

Definition at line 214 of file hash_append.h.

◆ hash_append() [3/22]

template<class Hasher, class T>
std::enable_if_t< std::is_floating_point_v< T > > beast::hash_append ( Hasher & h,
T t )
noexcept

Definition at line 222 of file hash_append.h.

◆ hash_append() [4/22]

template<class Hasher>
void beast::hash_append ( Hasher & h,
std::nullptr_t  )
noexcept

Definition at line 232 of file hash_append.h.

◆ hash_append() [5/22]

template<class Hasher, class T, std::size_t N>
std::enable_if_t<!IsContiguouslyHashable< T, Hasher >::value > beast::hash_append ( Hasher & h,
T(&) a[N] )
noexcept

Definition at line 295 of file hash_append.h.

◆ hash_append() [6/22]

template<class Hasher, class CharT, class Traits, class Alloc>
std::enable_if_t<!IsContiguouslyHashable< CharT, Hasher >::value > beast::hash_append ( Hasher & h,
std::basic_string< CharT, Traits, Alloc > const & s )
noexcept

Definition at line 305 of file hash_append.h.

◆ hash_append() [7/22]

template<class Hasher, class CharT, class Traits, class Alloc>
std::enable_if_t< IsContiguouslyHashable< CharT, Hasher >::value > beast::hash_append ( Hasher & h,
std::basic_string< CharT, Traits, Alloc > const & s )
noexcept

Definition at line 314 of file hash_append.h.

◆ hash_append() [8/22]

template<class Hasher, class T, class U>
std::enable_if_t<!IsContiguouslyHashable< std::pair< T, U >, Hasher >::value > beast::hash_append ( Hasher & h,
std::pair< T, U > const & p )
noexcept

Definition at line 324 of file hash_append.h.

◆ hash_append() [9/22]

template<class Hasher, class T, class Alloc>
std::enable_if_t<!IsContiguouslyHashable< T, Hasher >::value > beast::hash_append ( Hasher & h,
std::vector< T, Alloc > const & v )
noexcept

Definition at line 333 of file hash_append.h.

◆ hash_append() [10/22]

template<class Hasher, class T, class Alloc>
std::enable_if_t< IsContiguouslyHashable< T, Hasher >::value > beast::hash_append ( Hasher & h,
std::vector< T, Alloc > const & v )
noexcept

Definition at line 342 of file hash_append.h.

◆ hash_append() [11/22]

template<class Hasher, class T, std::size_t N>
std::enable_if_t<!IsContiguouslyHashable< std::array< T, N >, Hasher >::value > beast::hash_append ( Hasher & h,
std::array< T, N > const & a )
noexcept

Definition at line 352 of file hash_append.h.

◆ hash_append() [12/22]

template<class Hasher, class... T>
std::enable_if_t<!IsContiguouslyHashable< std::tuple< T... >, Hasher >::value > beast::hash_append ( Hasher & h,
std::tuple< T... > const & t )
noexcept

Definition at line 399 of file hash_append.h.

◆ hash_append() [13/22]

template<class Hasher, class Key, class T, class Hash, class Pred, class Alloc>
void beast::hash_append ( Hasher & h,
std::unordered_map< Key, T, Hash, Pred, Alloc > const & m )

◆ hash_append() [14/22]

template<class Hasher, class Key, class Hash, class Pred, class Alloc>
void beast::hash_append ( Hasher & h,
std::unordered_set< Key, Hash, Pred, Alloc > const & s )

◆ hash_append() [15/22]

template<class Hasher, class Key, class Compare, class Alloc>
std::enable_if_t<!IsContiguouslyHashable< Key, Hasher >::value > beast::hash_append ( Hasher & h,
boost::container::flat_set< Key, Compare, Alloc > const & v )
noexcept

Definition at line 360 of file hash_append.h.

◆ hash_append() [16/22]

template<class Hasher, class Key, class Compare, class Alloc>
std::enable_if_t< IsContiguouslyHashable< Key, Hasher >::value > beast::hash_append ( Hasher & h,
boost::container::flat_set< Key, Compare, Alloc > const & v )
noexcept

Definition at line 367 of file hash_append.h.

◆ hash_append() [17/22]

template<class Hasher, class T0, class T1, class... T>
void beast::hash_append ( Hasher & h,
T0 const & t0,
T1 const & t1,
T const &... t )
noexcept

Definition at line 433 of file hash_append.h.

◆ hash_append() [18/22]

template<class Hasher, class T>
void beast::hash_append ( Hasher & h,
std::shared_ptr< T > const & p )
noexcept

Definition at line 408 of file hash_append.h.

◆ hash_append() [19/22]

template<class Hasher, class Rep, class Period>
void beast::hash_append ( Hasher & h,
std::chrono::duration< Rep, Period > const & d )
noexcept

Definition at line 417 of file hash_append.h.

◆ hash_append() [20/22]

template<class Hasher, class Clock, class Duration>
void beast::hash_append ( Hasher & h,
std::chrono::time_point< Clock, Duration > const & tp )
noexcept

Definition at line 424 of file hash_append.h.

◆ hash_append() [21/22]

template<class HashAlgorithm>
void beast::hash_append ( HashAlgorithm & h,
std::error_code const & ec )

Definition at line 443 of file hash_append.h.

◆ hash_append() [22/22]

template<class Hasher>
void beast::hash_append ( Hasher & h,
beast::IP::Address const & addr )
noexcept

Definition at line 69 of file IPAddress.h.

◆ typeName()

template<typename T>
std::string beast::typeName ( )

Definition at line 16 of file type_name.h.

◆ rngfill() [1/2]

template<class Generator>
void beast::rngfill ( void *const buffer,
std::size_t const bytes,
Generator & g )

Definition at line 14 of file rngfill.h.

◆ rngfill() [2/2]

template<class Generator, std::size_t N, class = std::enable_if_t<N % sizeof(typename Generator::result_type) == 0>>
void beast::rngfill ( std::array< std::uint8_t, N > & a,
Generator & g )

Definition at line 43 of file rngfill.h.

◆ signum() [1/2]

template<typename T>
auto beast::signum ( T const & t)

Default implementation of signum calls the method on the class.

Definition at line 36 of file Zero.h.

◆ operator==() [3/4]

template<typename T>
bool beast::operator== ( T const & t,
Zero  )

Definition at line 58 of file Zero.h.

◆ operator!=() [3/4]

template<typename T>
bool beast::operator!= ( T const & t,
Zero  )

Definition at line 65 of file Zero.h.

◆ operator<() [2/3]

template<typename T>
bool beast::operator< ( T const & t,
Zero  )

Definition at line 71 of file Zero.h.

◆ operator>() [2/3]

template<typename T>
bool beast::operator> ( T const & t,
Zero  )

Definition at line 79 of file Zero.h.

◆ operator>=() [2/3]

template<typename T>
bool beast::operator>= ( T const & t,
Zero  )

Definition at line 86 of file Zero.h.

◆ operator<=() [2/3]

template<typename T>
bool beast::operator<= ( T const & t,
Zero  )

Definition at line 92 of file Zero.h.

◆ operator==() [4/4]

template<typename T>
bool beast::operator== ( Zero ,
T const & t )

Definition at line 103 of file Zero.h.

◆ operator!=() [4/4]

template<typename T>
bool beast::operator!= ( Zero ,
T const & t )

Definition at line 110 of file Zero.h.

◆ operator<() [3/3]

template<typename T>
bool beast::operator< ( Zero ,
T const & t )

Definition at line 116 of file Zero.h.

◆ operator>() [3/3]

template<typename T>
bool beast::operator> ( Zero ,
T const & t )

Definition at line 124 of file Zero.h.

◆ operator>=() [3/3]

template<typename T>
bool beast::operator>= ( Zero ,
T const & t )

Definition at line 131 of file Zero.h.

◆ operator<=() [3/3]

template<typename T>
bool beast::operator<= ( Zero ,
T const & t )

Definition at line 137 of file Zero.h.

◆ printIdentifiers()

std::string beast::printIdentifiers ( SemanticVersion::identifier_list const & list)

Definition at line 18 of file SemanticVersion.cpp.

◆ isNumeric()

bool beast::isNumeric ( std::string const & s)

Definition at line 33 of file SemanticVersion.cpp.

◆ chop()

bool beast::chop ( std::string const & what,
std::string & input )

Definition at line 46 of file SemanticVersion.cpp.

◆ chopUInt()

bool beast::chopUInt ( int & value,
int limit,
std::string & input )

Definition at line 58 of file SemanticVersion.cpp.

◆ extractIdentifier()

bool beast::extractIdentifier ( std::string & value,
bool allowLeadingZeroes,
std::string & input )

Definition at line 94 of file SemanticVersion.cpp.

◆ extractIdentifiers()

bool beast::extractIdentifiers ( SemanticVersion::identifier_list & identifiers,
bool allowLeadingZeroes,
std::string & input )

Definition at line 117 of file SemanticVersion.cpp.

◆ BEAST_DEFINE_TESTSUITE() [1/15]

beast::BEAST_DEFINE_TESTSUITE ( aged_set ,
beast ,
beast  )

◆ BEAST_DEFINE_TESTSUITE() [2/15]

beast::BEAST_DEFINE_TESTSUITE ( aged_map ,
beast ,
beast  )

◆ BEAST_DEFINE_TESTSUITE() [3/15]

beast::BEAST_DEFINE_TESTSUITE ( aged_multiset ,
beast ,
beast  )

◆ BEAST_DEFINE_TESTSUITE() [4/15]

beast::BEAST_DEFINE_TESTSUITE ( aged_multimap ,
beast ,
beast  )

◆ BEAST_DEFINE_TESTSUITE() [5/15]

beast::BEAST_DEFINE_TESTSUITE ( aged_unordered_set ,
beast ,
beast  )

◆ BEAST_DEFINE_TESTSUITE() [6/15]

beast::BEAST_DEFINE_TESTSUITE ( aged_unordered_map ,
beast ,
beast  )

◆ BEAST_DEFINE_TESTSUITE() [7/15]

beast::BEAST_DEFINE_TESTSUITE ( aged_unordered_multiset ,
beast ,
beast  )

◆ BEAST_DEFINE_TESTSUITE() [8/15]

beast::BEAST_DEFINE_TESTSUITE ( aged_unordered_multimap ,
beast ,
beast  )

◆ BEAST_DEFINE_TESTSUITE_MANUAL()

beast::BEAST_DEFINE_TESTSUITE_MANUAL ( abstract_clock ,
beast ,
beast  )

◆ BEAST_DEFINE_TESTSUITE() [9/15]

beast::BEAST_DEFINE_TESTSUITE ( BasicSecondsClock ,
beast ,
beast  )

◆ BEAST_DEFINE_TESTSUITE() [10/15]

beast::BEAST_DEFINE_TESTSUITE ( Journal ,
beast ,
beast  )

◆ BEAST_DEFINE_TESTSUITE() [11/15]

beast::BEAST_DEFINE_TESTSUITE ( PropertyStream ,
beast ,
beast  )

◆ signum() [2/2]

int beast::signum ( AdlTester )

Definition at line 11 of file beast_Zero_test.cpp.

◆ BEAST_DEFINE_TESTSUITE() [12/15]

beast::BEAST_DEFINE_TESTSUITE ( Zero ,
beast ,
beast  )

◆ BEAST_DEFINE_TESTSUITE() [13/15]

beast::BEAST_DEFINE_TESTSUITE ( LexicalCast ,
beast ,
beast  )

◆ BEAST_DEFINE_TESTSUITE() [14/15]

beast::BEAST_DEFINE_TESTSUITE ( SemanticVersion ,
beast ,
beast  )

◆ BEAST_DEFINE_TESTSUITE() [15/15]

beast::BEAST_DEFINE_TESTSUITE ( XXHasher ,
beast_core ,
beast  )

◆ heading()

template<class CharT, class Traits, class Allocator>
std::basic_string< CharT, Traits, Allocator > beast::heading ( std::basic_string< CharT, Traits, Allocator > title,
int width = 80,
CharT fill = CharT('-') )

Produce a section heading and fill the rest of the line with dashes.

Definition at line 32 of file iosformat.h.

◆ field() [1/3]

template<class CharT, class Traits, class Allocator>
FieldT< CharT, Traits, Allocator > beast::field ( std::basic_string< CharT, Traits, Allocator > const & text,
int width = 8,
int pad = 0,
bool right = false )

Definition at line 133 of file iosformat.h.

◆ field() [2/3]

template<class CharT>
FieldT< CharT > beast::field ( CharT const * text,
int width = 8,
int pad = 0,
bool right = false )

Definition at line 144 of file iosformat.h.

◆ field() [3/3]

template<typename T>
FieldT< char > beast::field ( T const & t,
int width = 8,
int pad = 0,
bool right = false )

Definition at line 155 of file iosformat.h.

◆ rField() [1/3]

template<class CharT, class Traits, class Allocator>
FieldT< CharT, Traits, Allocator > beast::rField ( std::basic_string< CharT, Traits, Allocator > const & text,
int width = 8,
int pad = 0 )

Definition at line 163 of file iosformat.h.

◆ rField() [2/3]

template<class CharT>
FieldT< CharT > beast::rField ( CharT const * text,
int width = 8,
int pad = 0 )

Definition at line 170 of file iosformat.h.

◆ rField() [3/3]

template<typename T>
FieldT< char > beast::rField ( T const & t,
int width = 8,
int pad = 0 )

Definition at line 181 of file iosformat.h.