|
CatapultServer
v0.5.0.1 (Elephant)
|
Immutable wrapper for basic types, to provide some type-safety. More...


Public Member Functions | |
| constexpr | BaseValue (TValue value=0) |
| Creates a base value from a raw value. More... | |
| constexpr BaseValue | operator+ (BaseValue rhs) const |
| Adds rhs and this value and returns a new value. More... | |
| constexpr BaseValue | operator- (BaseValue rhs) const |
| Subtracts rhs from this value and returns a new value. More... | |
Public Member Functions inherited from catapult::utils::BasicBaseValue< TValue, TTag, BaseValue< TValue, TTag > > | |
| 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== (BaseValue< TValue, TTag > rhs) const |
Returns true if this value is equal to rhs. More... | |
| constexpr bool | operator!= (BaseValue< TValue, TTag > rhs) const |
Returns true if this value is not equal to rhs. More... | |
| constexpr bool | operator>= (BaseValue< TValue, TTag > rhs) const |
Returns true if this value is greater than or equal to rhs. More... | |
| constexpr bool | operator> (BaseValue< TValue, TTag > rhs) const |
Returns true if this value is greater than rhs. More... | |
| constexpr bool | operator<= (BaseValue< TValue, TTag > rhs) const |
Returns true if this value is less than or equal to rhs. More... | |
| constexpr bool | operator< (BaseValue< TValue, TTag > rhs) const |
Returns true if this value is less than rhs. More... | |
Additional Inherited Members | |
Public Types inherited from catapult::utils::BasicBaseValue< TValue, TTag, BaseValue< TValue, TTag > > | |
| using | ValueType = TValue |
| Raw value type. More... | |
Immutable wrapper for basic types, to provide some type-safety.
|
inlineexplicitconstexpr |
Creates a base value from a raw value.

|
inlineconstexpr |
Adds rhs and this value and returns a new value.
|
inlineconstexpr |
Subtracts rhs from this value and returns a new value.