This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to look-up "Identifiable"s stored in a simple vector. It is intended to be a continuous hash, i.e. it runs from 0 to N-1, where there are N different possible values for an Identifier(32) within a specific context. IdentifierHashes are created by default in an invalid state which can be checked with "is_valid" method. This allows some error checking.
More...
#include <IdentifierHash.h>
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to look-up "Identifiable"s stored in a simple vector. It is intended to be a continuous hash, i.e. it runs from 0 to N-1, where there are N different possible values for an Identifier(32) within a specific context. IdentifierHashes are created by default in an invalid state which can be checked with "is_valid" method. This allows some error checking.
- Author
- schaffer
- Date
- 2003-11-26
Definition at line 25 of file IdentifierHash.h.
◆ value_type
◆ IdentifierHash() [1/2]
IdentifierHash::IdentifierHash |
( |
| ) |
|
|
default |
◆ IdentifierHash() [2/2]
IdentifierHash::IdentifierHash |
( |
value_type |
value | ) |
|
Initialization with value.
◆ is_valid()
bool IdentifierHash::is_valid |
( |
| ) |
const |
Check if id is in a valid state.
◆ operator unsigned int()
IdentifierHash::operator unsigned int |
( |
| ) |
const |
◆ operator+=()
◆ operator-=()
◆ operator=()
◆ value()
unsigned int IdentifierHash::value |
( |
| ) |
const |
◆ m_max_value
constexpr value_type IdentifierHash::m_max_value = 0xFFFFFFFF |
|
staticconstexprprivate |
default value, and indicator of invalid state
Definition at line 46 of file IdentifierHash.h.
◆ m_value
The documentation for this class was generated from the following file: