|
CatapultServer
v0.5.0.1 (Elephant)
|
Represents a hash with attached timestamp. More...

Public Types | |
| using | HashType = std::array< uint8_t, Cached_Hash_Size > |
| Hash type. More... | |
Public Member Functions | |
| constexpr | TimestampedHash () |
| Creates a timestamped hash. More... | |
| constexpr | TimestampedHash (Timestamp timestamp) |
| Creates a timestamped hash from a timestamp. More... | |
| TimestampedHash (Timestamp timestamp, const Hash256 &hash) | |
| Creates a timestamped hash from a timestamp and a hash. More... | |
| constexpr bool | operator< (const TimestampedHash &rhs) const |
Returns true if this timestamped hash is less than rhs. More... | |
| constexpr bool | operator== (const TimestampedHash &rhs) const |
Returns true if this timestamped hash is equal to rhs. More... | |
| constexpr bool | operator!= (const TimestampedHash &rhs) const |
Returns true if this timestamped hash is not equal to rhs. More... | |
Public Attributes | |
| Timestamp | Time |
| Timestamp. More... | |
| HashType | Hash |
Represents a hash with attached timestamp.
| using catapult::state::TimestampedHash::HashType = std::array<uint8_t, Cached_Hash_Size> |
Hash type.
|
inlineconstexpr |
Creates a timestamped hash.
|
inlineexplicitconstexpr |
Creates a timestamped hash from a timestamp.
|
inlineexplicit |
Creates a timestamped hash from a timestamp and a hash.

|
inlineconstexpr |
Returns true if this timestamped hash is not equal to rhs.
|
inlineconstexpr |
Returns true if this timestamped hash is less than rhs.
|
inlineconstexpr |
Returns true if this timestamped hash is equal to rhs.
| HashType catapult::state::TimestampedHash::Hash |
Hash.
| Timestamp catapult::state::TimestampedHash::Time |
Timestamp.