Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

SLHashTable::Element Class Reference

#include <SLHashTable.hpp>

Inheritance diagram for SLHashTable::Element:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual HashCode getHashCode () const=0
virtual Elementclone () const=0
virtual bool operator== (const Element &other) const=0
virtual ~Element ()

Detailed Description

This is an abstract class. Objects willing to be inserted into hashtable as key or value should implement it.


Constructor & Destructor Documentation

virtual SLHashTable::Element::~Element  )  [inline, virtual]
 

The destructor is virtual of course to allow to reach the real object destructor.


Member Function Documentation

virtual Element* SLHashTable::Element::clone  )  const [pure virtual]
 

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.

virtual HashCode SLHashTable::Element::getHashCode  )  const [pure virtual]
 

Compute the hash code of an element.

Implemented in SLString.

virtual bool SLHashTable::Element::operator== const Element other  )  const [pure virtual]
 

Mandatory : two elements must be equality comparable


The documentation for this class was generated from the following file:
Generated on Mon Apr 19 01:03:36 2004 for segusoLand by doxygen 1.3.6-20040222