Methods and structures related to the calculation of hashes.
More...
|
template<class C > |
uint64_t | hashOW (const C &v) |
| It calculates a hash of the container, the order of elements influences (Order Wise) the hash value. More...
|
|
template<class C > |
uintptr_t | hashEW (const C &v) |
| It calculates a hash of the container, the order of elements does not influence (Element Wise) the hash value. More...
|
|
Methods and structures related to the calculation of hashes.
As there is not default implementation of the hash for some data structures, we implemented the missing hashes by using the template specializations.
- See also
- pack, unpack
template<class C >
uintptr_t hashEW |
( |
const C & |
v | ) |
|
It calculates a hash of the container, the order of elements does not influence (Element Wise) the hash value.
- Parameters
-
- Template Parameters
-
C | Currently it is either vector<Location*> or set<Location*>. |
- Returns
- Calculated hash value of the container.
template<class C >
uint64_t hashOW |
( |
const C & |
v | ) |
|
It calculates a hash of the container, the order of elements influences (Order Wise) the hash value.
- Parameters
-
- Template Parameters
-
C | Currently it is either vector<uint32_t> or vector<StaticActivity*>. |
- Returns
- Calculated hash value of the container.