Base Framework
Public Member Functions | List of all members
HashTable< KEY, VALUE >::Node Class Reference

Inherits Object.

Public Member Functions

 Node (unsigned long _hash, const Key &_key, const Value &_value) noexcept
 
 Node (unsigned long _hash, const Key &_key, const Value &_value, Node *_next) noexcept
 
unsigned long getHash () const noexcept
 
const Association< Key, Value > & getKeyValue () const noexcept
 
const KeygetKey () const noexcept
 
ValuegetValue () noexcept
 
const ValuegetValue () const noexcept
 
NodegetNext () noexcept
 
const NodegetNext () const noexcept
 
void setNext (Node *node) noexcept
 

Constructor & Destructor Documentation

◆ Node() [1/2]

template<class KEY , class VALUE >
HashTable< KEY, VALUE >::Node::Node ( unsigned long  _hash,
const Key _key,
const Value _value 
)
inlinenoexcept

Initializes a node.

◆ Node() [2/2]

template<class KEY , class VALUE >
HashTable< KEY, VALUE >::Node::Node ( unsigned long  _hash,
const Key _key,
const Value _value,
Node _next 
)
inlinenoexcept

Initializes a node.

Member Function Documentation

◆ getHash()

template<class KEY , class VALUE >
unsigned long HashTable< KEY, VALUE >::Node::getHash ( ) const
inlinenoexcept

Returns the hash value of the node.

◆ getKey()

template<class KEY , class VALUE >
const Key& HashTable< KEY, VALUE >::Node::getKey ( ) const
inlinenoexcept

Returns the key of the node.

◆ getKeyValue()

template<class KEY , class VALUE >
const Association<Key, Value>& HashTable< KEY, VALUE >::Node::getKeyValue ( ) const
inlinenoexcept

Returns the key of the node.

◆ getNext() [1/2]

template<class KEY , class VALUE >
const Node* HashTable< KEY, VALUE >::Node::getNext ( ) const
inlinenoexcept

Returns the next node.

◆ getNext() [2/2]

template<class KEY , class VALUE >
Node* HashTable< KEY, VALUE >::Node::getNext ( )
inlinenoexcept

Returns the next node.

◆ getValue() [1/2]

template<class KEY , class VALUE >
const Value& HashTable< KEY, VALUE >::Node::getValue ( ) const
inlinenoexcept

Returns the value of the node.

◆ getValue() [2/2]

template<class KEY , class VALUE >
Value& HashTable< KEY, VALUE >::Node::getValue ( )
inlinenoexcept

Returns the value of the node.

◆ setNext()

template<class KEY , class VALUE >
void HashTable< KEY, VALUE >::Node::setNext ( Node node)
inlinenoexcept

Sets the next node.