|
boost::multiprecision::uint128_t | m_score |
|
Score of a block chain.
- Note
- This is a 128-bit value.
◆ ArrayType
◆ ChainScore() [1/4]
catapult::model::ChainScore::ChainScore |
( |
| ) |
|
|
inline |
Creates a default chain score.
◆ ChainScore() [2/4]
catapult::model::ChainScore::ChainScore |
( |
uint64_t |
score | ) |
|
|
inlineexplicit |
Creates a chain score from a 64-bit value (score).
◆ ChainScore() [3/4]
catapult::model::ChainScore::ChainScore |
( |
uint64_t |
scoreHigh, |
|
|
uint64_t |
scoreLow |
|
) |
| |
|
inlineexplicit |
Creates a chain score from a 128-bit value composed of two 64-bit values (scoreHigh and scoreLow).
◆ ChainScore() [4/4]
catapult::model::ChainScore::ChainScore |
( |
const ChainScore & |
| ) |
|
|
default |
◆ operator!=()
bool catapult::model::ChainScore::operator!= |
( |
const ChainScore & |
rhs | ) |
const |
|
inline |
Returns true
if this score is not equal to rhs.
◆ operator+=()
Adds rhs to this chain score.
◆ operator-=()
Subtracts rhs from this chain score.
◆ operator<()
bool catapult::model::ChainScore::operator< |
( |
const ChainScore & |
rhs | ) |
const |
|
inline |
Returns true
if this score is less than rhs.
◆ operator<=()
bool catapult::model::ChainScore::operator<= |
( |
const ChainScore & |
rhs | ) |
const |
|
inline |
Returns true
if this score is less than or equal to rhs.
◆ operator=()
◆ operator==()
bool catapult::model::ChainScore::operator== |
( |
const ChainScore & |
rhs | ) |
const |
|
inline |
Returns true
if this score is equal to rhs.
◆ operator>()
bool catapult::model::ChainScore::operator> |
( |
const ChainScore & |
rhs | ) |
const |
|
inline |
Returns true
if this score is greater than rhs.
◆ operator>=()
bool catapult::model::ChainScore::operator>= |
( |
const ChainScore & |
rhs | ) |
const |
|
inline |
Returns true
if this score is greater than or equal to rhs.
◆ toArray()
ArrayType catapult::model::ChainScore::toArray |
( |
| ) |
const |
|
inline |
Gets an array representing the underlying score.
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const ChainScore & |
score |
|
) |
| |
|
friend |
Insertion operator for outputting score to out.
◆ Bits_Per_Value
constexpr uint32_t catapult::model::ChainScore::Bits_Per_Value = 64 |
|
staticconstexprprivate |
◆ m_score
boost::multiprecision::uint128_t catapult::model::ChainScore::m_score |
|
private |
The documentation for this class was generated from the following file: