CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace state {
34 using HashType = std::array<uint8_t, Cached_Hash_Size>;
71 return !(*
this == rhs);
81 std::ostream&
operator<<(std::ostream& out,
const TimestampedHash& timestampedHash);
constexpr void HexFormat(const ByteArray< N, TTag > &)
TimestampedHash(Timestamp timestamp, const Hash256 &hash)
Creates a timestamped hash from a timestamp and a hash.
Definition: TimestampedHash.h:46
Timestamp Time
Timestamp.
Definition: TimestampedHash.h:52
constexpr TimestampedHash(Timestamp timestamp)
Creates a timestamped hash from a timestamp.
Definition: TimestampedHash.h:42
std::array< uint8_t, Cached_Hash_Size > HashType
Hash type.
Definition: TimestampedHash.h:34
constexpr TimestampedHash()
Creates a timestamped hash.
Definition: TimestampedHash.h:38
std::ostream & operator<<(std::ostream &out, const TimestampedHash ×tampedHash)
Insertion operator for outputting timestampedHash to out.
Definition: TimestampedHash.cpp:30
Represents a range of entities.
Definition: EntityRange.h:31
constexpr bool operator==(const TimestampedHash &rhs) const
Returns true if this timestamped hash is equal to rhs.
Definition: TimestampedHash.h:65
constexpr const uint8_t * data() const noexcept
Returns a const pointer to the underlying array.
Definition: ByteArray.h:70
Represents a hash with attached timestamp.
Definition: TimestampedHash.h:31
constexpr bool operator!=(const TimestampedHash &rhs) const
Returns true if this timestamped hash is not equal to rhs.
Definition: TimestampedHash.h:70
RawBuffer SerializeKey(const TimestampedHash ×tampedHash)
Wraps timestampedHash in raw buffer.
Definition: TimestampedHash.cpp:26
constexpr bool operator<(const TimestampedHash &rhs) const
Returns true if this timestamped hash is less than rhs.
Definition: TimestampedHash.h:60
Definition: AddressExtractionExtension.cpp:28
HashType Hash
Definition: TimestampedHash.h:56
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62