#include <SLHashTable.hpp>
Inheritance diagram for SLHashTable::Element:
Public Member Functions | |
virtual HashCode | getHashCode () const=0 |
virtual Element * | clone () const=0 |
virtual bool | operator== (const Element &other) const=0 |
virtual | ~Element () |
|
The destructor is virtual of course to allow to reach the real object destructor. |
|
This function allow to get a safe copy of an element. The copy will be destroyed at HashTable destruction time. Objects using shared_ptr does not need to make a deep copy of internal data. Implemented in SLString. |
|
Compute the hash code of an element. Implemented in SLString. |
|
Mandatory : two elements must be equality comparable |