CatapultServer
v0.5.0.1 (Elephant)
|
Base class for immutable wrappers of basic types, to provide some type-safety. More...
Public Types | |
using | ValueType = TValue |
Raw value type. More... | |
Public Member Functions | |
constexpr | BasicBaseValue (TValue value) |
Creates a basic base value from a raw value. More... | |
constexpr | BasicBaseValue (const BasicBaseValue &rhs) |
Creates a copy of rhs. More... | |
BasicBaseValue & | operator= (BasicBaseValue rhs) |
Assigns rhs to this. More... | |
constexpr ValueType | unwrap () const |
Unwraps this value and returns the underlying raw value. More... | |
constexpr bool | operator== (TBaseValue rhs) const |
Returns true if this value is equal to rhs. More... | |
constexpr bool | operator!= (TBaseValue rhs) const |
Returns true if this value is not equal to rhs. More... | |
constexpr bool | operator>= (TBaseValue rhs) const |
Returns true if this value is greater than or equal to rhs. More... | |
constexpr bool | operator> (TBaseValue rhs) const |
Returns true if this value is greater than rhs. More... | |
constexpr bool | operator<= (TBaseValue rhs) const |
Returns true if this value is less than or equal to rhs. More... | |
constexpr bool | operator< (TBaseValue rhs) const |
Returns true if this value is less than rhs. More... | |
Private Attributes | |
ImmutableValue< TValue > | m_value |
Friends | |
std::ostream & | operator<< (std::ostream &out, TBaseValue baseValue) |
Insertion operator for outputting baseValue to out. More... | |
Base class for immutable wrappers of basic types, to provide some type-safety.
using catapult::utils::BasicBaseValue< TValue, TTag, TBaseValue >::ValueType = TValue |
Raw value type.
|
inlineexplicitconstexpr |
Creates a basic base value from a raw value.
|
inlineconstexpr |
Creates a copy of rhs.
|
inlineconstexpr |
Returns true
if this value is not equal to rhs.
|
inlineconstexpr |
Returns true
if this value is less than rhs.
|
inlineconstexpr |
Returns true
if this value is less than or equal to rhs.
|
inline |
Assigns rhs to this.
|
inlineconstexpr |
Returns true
if this value is equal to rhs.
|
inlineconstexpr |
Returns true
if this value is greater than rhs.
|
inlineconstexpr |
Returns true
if this value is greater than or equal to rhs.
|
inlineconstexpr |
Unwraps this value and returns the underlying raw value.
|
friend |
Insertion operator for outputting baseValue to out.
|
private |