Hashing modulo-wrapping label generator (NOT UNIFORM)
More...
#include <Labels.h>
Hashing modulo-wrapping label generator (NOT UNIFORM)
Definition at line 44 of file Labels.h.
IdLabels::IdLabels |
( |
uint |
modulo | ) |
|
|
inline |
Create a new set of labels
- Parameters
-
modulo | the number of different values to assign the labels |
Definition at line 47 of file Labels.h.
const int& IdLabels::operator[] |
( |
uint |
index | ) |
const |
|
inlinevirtual |
void IdLabels::set |
( |
uint |
id, |
|
|
const int & |
value |
|
) |
| |
|
inlinevirtual |
std::vector<int> IdLabels::pointlessInts |
We need this because results need to be returned by reference and are referred to with pointers elsewhere. As the name says, it's rather pointless, but ah well.
Definition at line 71 of file Labels.h.
The documentation for this struct was generated from the following file: