CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace utils {
29 template<
typename TValue,
typename TTag,
typename TBaseValue>
65 return !(*
this == rhs);
89 friend std::ostream&
operator<<(std::ostream& out, TBaseValue baseValue) {
90 out << baseValue.m_value;
99 template<
typename TValue,
typename TTag>
friend std::ostream & operator<<(std::ostream &out, TBaseValue baseValue)
Insertion operator for outputting baseValue to out.
Definition: BaseValue.h:89
ImmutableValue< TValue > m_value
Definition: BaseValue.h:95
constexpr bool operator<=(TBaseValue rhs) const
Returns true if this value is less than or equal to rhs.
Definition: BaseValue.h:79
constexpr bool operator!=(TBaseValue rhs) const
Returns true if this value is not equal to rhs.
Definition: BaseValue.h:64
uint64_t ValueType
Raw value type.
Definition: BaseValue.h:33
constexpr BasicBaseValue(const BasicBaseValue &rhs)
Creates a copy of rhs.
Definition: BaseValue.h:41
constexpr BaseValue operator+(BaseValue rhs) const
Adds rhs and this value and returns a new value.
Definition: BaseValue.h:109
constexpr bool operator>=(TBaseValue rhs) const
Returns true if this value is greater than or equal to rhs.
Definition: BaseValue.h:69
constexpr ValueType unwrap() const
Unwraps this value and returns the underlying raw value.
Definition: BaseValue.h:53
Immutable wrapper for basic types, to provide some type-safety.
Definition: BaseValue.h:100
Base class for immutable wrappers of basic types, to provide some type-safety.
Definition: BaseValue.h:30
constexpr BaseValue(TValue value=0)
Creates a base value from a raw value.
Definition: BaseValue.h:103
constexpr bool operator==(TBaseValue rhs) const
Returns true if this value is equal to rhs.
Definition: BaseValue.h:59
constexpr BaseValue operator-(BaseValue rhs) const
Subtracts rhs from this value and returns a new value.
Definition: BaseValue.h:114
constexpr bool operator<(TBaseValue rhs) const
Returns true if this value is less than rhs.
Definition: BaseValue.h:84
BasicBaseValue & operator=(BasicBaseValue rhs)
Assigns rhs to this.
Definition: BaseValue.h:46
constexpr bool operator>(TBaseValue rhs) const
Returns true if this value is greater than rhs.
Definition: BaseValue.h:74
constexpr BasicBaseValue(TValue value)
Creates a basic base value from a raw value.
Definition: BaseValue.h:37
A move-only value wrapper.
Definition: ImmutableValue.h:30
Definition: AddressExtractionExtension.cpp:28