CatapultServer  v0.5.0.1 (Elephant)
ShortHashPair.h
Go to the documentation of this file.
1 
21 #pragma once
24 #include <unordered_map>
25 
26 namespace catapult { namespace cache {
27 
28 #pragma pack(push, 1)
29 
31  struct ShortHashPair {
32  public:
35 
38 
39  public:
41  constexpr bool operator==(const ShortHashPair& rhs) const {
43  }
44 
46  constexpr bool operator!=(const ShortHashPair& rhs) const {
47  return !(*this == rhs);
48  }
49  };
50 
51 #pragma pack(pop)
52 
55 
57  using ShortHashPairMap = std::unordered_map<utils::ShortHash, utils::ShortHash, utils::ShortHashHasher>;
58 }}
catapult::cache::ShortHashPairMap
std::unordered_map< utils::ShortHash, utils::ShortHash, utils::ShortHashHasher > ShortHashPairMap
A map composed of short hash pairs where the key is the transaction short hash and the value is the c...
Definition: ShortHashPair.h:57
catapult::model::EntityRange
Represents a range of entities.
Definition: EntityRange.h:31
catapult::cache::ShortHashPair::operator==
constexpr bool operator==(const ShortHashPair &rhs) const
Returns true if this short hash pair is equal to rhs.
Definition: ShortHashPair.h:41
catapult::utils::BaseValue
Immutable wrapper for basic types, to provide some type-safety.
Definition: BaseValue.h:100
catapult::cache::ShortHashPair::operator!=
constexpr bool operator!=(const ShortHashPair &rhs) const
Returns true if this short hash pair is not equal to rhs.
Definition: ShortHashPair.h:46
catapult::cache::ShortHashPair
A unique identifier for a partial transaction.
Definition: ShortHashPair.h:31
EntityRange.h
ShortHash.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::cache::ShortHashPair::CosignaturesShortHash
utils::ShortHash CosignaturesShortHash
Cosignatures short hash.
Definition: ShortHashPair.h:37
catapult::cache::ShortHashPair::TransactionShortHash
utils::ShortHash TransactionShortHash
Transaction short hash.
Definition: ShortHashPair.h:34