Glossygloss
0.2
Glossygloss is set of classes to use several data structure as Tree or hash table.
|
Class to define Hashtable alveoles. More...
#include <hashtable.hpp>
Public Member Functions | |
Alveole (const Alveole< K, V > &other) | |
Alveole (K key, V value) | |
Alveole () | |
Alveole (K key, V value, Alveole< K, V > *next) | |
~Alveole () | |
K | getKey () |
V | getValue () |
Alveole< K, V > * | getNext () |
void | setValue (V n_value) |
void | setNext (Alveole< K, V > *n_next) |
string | toString () |
Private Attributes | |
K | _key |
V | _value |
Alveole< K, V > * | _next |
Class to define Hashtable alveoles.
Alveole class embodies a Hashtable's alveole. An alveole store a pair <k,v>. Alveoles are simply-linked elements.
next aveole Copy constructor
[in] | other | the alveole to copy |
Pair constructor
[in] | key | key of the pair |
[in] | value | value of the pair |
Empty constructor create an 'empty' alveole
Alveole< K, V >::Alveole | ( | K | key, |
V | value, | ||
Alveole< K, V > * | next | ||
) |
Complex constructor
[in] | key | key of the pair |
[in] | value | value of the pair |
[in] | next | adresse to the next alveole |
Get the key of an alveole
[out] | key | key stored into the alveole |
Which alveole coming next ?
[out] | ptr | memory adress of the next alveole |
Get the value stored into an alveole
[out] | value | value of the alveole |
Set the next adress of the next alveole
[in] | n_next | adress of the new next alveole |
Set the value stored into an alveole
[in] | n_value | The new value of the pair |
Return a string descriptionof the pair stored into the alveole
[out] | desc | a string represention of the alveole |