CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 #include <unordered_map>
26 #include <unordered_set>
28 namespace catapult {
namespace utils {
31 template<
typename TArray>
39 template<
typename TArray>
41 bool operator()(
const TArray* pLhs,
const TArray* pRhs)
const {
42 return *pLhs == *pRhs;
47 template<
typename TArray>
48 using ArraySet = std::unordered_set<TArray, ArrayHasher<TArray>>;
51 template<
typename TArray>
55 template<
typename TArray>
size_t operator()(const TArray *pArray) const
Definition: ArraySet.h:33
std::unordered_set< TArray, ArrayHasher< TArray > > ArraySet
A set of arrays.
Definition: ArraySet.h:48
std::set< Key > SortedKeySet
A sorted key set.
Definition: ArraySet.h:67
std::unordered_map< const TArray *, bool, ArrayPointerHasher< TArray >, ArrayPointerEquality< TArray > > ArrayPointerFlagMap
A map of array pointers to flags.
Definition: ArraySet.h:56
Functor for hashing an array pointer.
Definition: ArraySet.h:32
Functor for comparing two array pointers.
Definition: ArraySet.h:40
ArraySet< Key > KeySet
A key set.
Definition: ArraySet.h:64
ArraySet< Hash256 > HashSet
A hash set.
Definition: ArraySet.h:61
ArrayPointerSet< Key > KeyPointerSet
A key pointer set.
Definition: ArraySet.h:73
Definition: AddressExtractionExtension.cpp:28
std::unordered_set< const TArray *, ArrayPointerHasher< TArray >, ArrayPointerEquality< TArray > > ArrayPointerSet
A set of array pointers.
Definition: ArraySet.h:52
ArrayPointerSet< Hash256 > HashPointerSet
A hash pointer set.
Definition: ArraySet.h:70
bool operator()(const TArray *pLhs, const TArray *pRhs) const
Definition: ArraySet.h:41