#include <JHashCursor.h>
◆ JHashCursor() [1/2]
A hash table cursor which can modify its table.
Set automatically resizes the table.
Base code generated by Codemill v0.1.0 The version without a hash value or key parameter iterates through the entire table, obviously in no perceptible order. The others iterate over all records containing the given hash value.
◆ JHashCursor() [2/2]
◆ ~JHashCursor()
◆ ForceNextMapInsertHash()
Like NextMapInsertHash(), but if no open space is found it resets, grows the table, and then tries again. Because it can resize a table, it asserts that you haven't used it on a table with the resize flag off.
It can safely be called on a cursor which has already been advanced with one of the Next... functions if you know what you're doing, but be careful.
◆ ForceNextMapInsertKey()
Like NextMapInsertKey(), but if no open space is found it resets, grows the table, and then tries again. Because it can resize a table, it asserts that you haven't used it on a table with the resize flag off.
It can safely be called on a cursor which has already been advanced with one of the Next... functions if you know what you're doing, but be careful.
◆ ForceNextOpen()
See notes in JConstHashCursor. Like NextOpen(), but if no open space is found it resets, grows the table, and then finds an open space. Since it always finds an open space, it has no return value. Because it can resize a table, it asserts that you haven't used it on a table with the resize flag off.
It can safely be called on a cursor which has already been advanced with one of the Next... functions if you know what you're doing, but be careful.
◆ GetMutableTable()
◆ MarkEmpty()
DANGER! Extreme memory leak hazard!
Don't use this unless you know what you're doing–this is the single easiest way to rip a hash table to shreds, and likely leak memory too.
◆ Remove()
◆ Set() [1/3]
How a record may be set is restricted just as for individual records to make it harder to make errors. However, for efficiency's sake you don't get much hand-holding. In particularly, those versions which take a key but not a value use the hash value the cursor was initialized with; just make sure that the key and hash match!
The record being set must always be in a kFull state after the set. For this reason, Set() automatically sets the state to kFull.
◆ Set() [2/3]
◆ Set() [3/3]
◆ SetHash()
template<class V >
void JHashCursor< V >::SetHash |
( |
const V & |
value | ) |
const |
|
inline |
The documentation for this class was generated from the following files: