#include <hashnode.h>
Public Member Functions | |
HashNode () | |
HashNode (const string &name) | |
void | SetName (const string &name) |
const string & | GetName () const |
virtual void | Remove () |
Protected Member Functions | |
void | SetHashTable (HashTable *t) |
Private Attributes | |
StrNode | str_node |
HashTable * | h_table |
Friends | |
class | HashList |
HashNode::HashNode | ( | ) | [inline] |
Default constructor.
HashNode::HashNode | ( | const string & | name | ) | [inline] |
Constructor with given name.
void HashNode::SetName | ( | const string & | name | ) | [inline] |
Sets name of node.
const string & HashNode::GetName | ( | ) | const [inline] |
Get name of the node.
void HashNode::Remove | ( | ) | [inline, virtual] |
Removes this node from hash list.
Reimplemented from ListNode< HashNode >.
void HashNode::SetHashTable | ( | HashTable * | t | ) | [inline, protected] |
Sets hash table for this node.
friend class HashList [friend] |
StrNode HashNode::str_node [private] |
HashTable* HashNode::h_table [private] |