|
Hybrid ICN (hICN) plugin
v21.06-rc0-4-g18fa668
|
These functions are used in PARCHashCodeTables by the MatchingRulesTable and ContentStore and PIT. They perform the equality and has generation needed by the PARCHashCodeTable. More...
#include <parc/algol/parc_HashCodeTable.h>
Go to the source code of this file.
Functions | |
| bool | hashTableFunction_MessageNameEquals (const void *messageA, const void *messageB) |
| HashCodeType | hashTableFunction_MessageNameHashCode (const void *messageA) |
These functions are used in PARCHashCodeTables by the MatchingRulesTable and ContentStore and PIT. They perform the equality and has generation needed by the PARCHashCodeTable.
| bool hashTableFunction_MessageNameEquals | ( | const void * | messageA, |
| const void * | messageB | ||
| ) |
Determine if the Names of two message instances are equal.
The following equivalence relations on non-null message instances are maintained:
hashTableFunction_MessageNameEquals(x, x) must return true.message_Equals(x, y) must return true if and only if hashTableFunction_MessageNameEquals(y, x) returns true.hashTableFunction_MessageNameEquals(x, y) returns true and hashTableFunction_MessageNameEquals(y, z) returns true, then hashTableFunction_MessageNameEquals(x, z) must return true.hashTableFunction_MessageNameEquals(x, y) consistently return true or consistently return false.hashTableFunction_MessageNameEquals(x, NULL) must return false.| a | A pointer to a message instance. |
| b | A pointer to a message instance. |
message instances are equal. | HashCodeType hashTableFunction_MessageNameHashCode | ( | const void * | messageA | ) |
@function hashTableFunction_NameHashCode @abstract Computes the hash of the entire name in a message
| messageA | is a message |
1.8.17