IdMapper is responsible for issuing unique numeric identificators from a given range.
| Node* |
Allocates a new identificator. | |||
| Node* |
Searches for a node with the given identificator. | |||
| void |
Removes a node from the mapper. | |||
| void |
Clears the mapper, removing all identificator mappings. | |||
The constructor. |
Allocates a new identificator.
Node* add (void *data) throw (OverflowException)
| data : | User's data to be associated with the new identificator. |
Searches for a node with the given identificator.
Node* lookup (unsigned long value)
| value : | The idntificator of the node to be found. |
Removes a node from the mapper.
void remove (Node *node)
| node : | The node to be removed from the mapper. |
Clears the mapper, removing all identificator mappings.
void clear ()
The constructor.
IdMapper (unsigned long limit)
| limit : | Maximum identificator for this IdMapper. |