Base Framework
Public Member Functions | List of all members
HashSet< TYPE >::Node Class Reference

Inherits Object.

Public Member Functions

 Node (unsigned long _hash, const Value &_value) noexcept
 
 Node (unsigned long _hash, const Value &_value, Node *_next) noexcept
 
unsigned long getHash () 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 TYPE >
HashSet< TYPE >::Node::Node ( unsigned long  _hash,
const Value _value 
)
inlinenoexcept

Initializes a node.

◆ Node() [2/2]

template<class TYPE >
HashSet< TYPE >::Node::Node ( unsigned long  _hash,
const Value _value,
Node _next 
)
inlinenoexcept

Initializes a node.

Member Function Documentation

◆ getHash()

template<class TYPE >
unsigned long HashSet< TYPE >::Node::getHash ( ) const
inlinenoexcept

Returns the hash value of the node.

◆ getNext() [1/2]

template<class TYPE >
const Node* HashSet< TYPE >::Node::getNext ( ) const
inlinenoexcept

Returns the next node.

◆ getNext() [2/2]

template<class TYPE >
Node* HashSet< TYPE >::Node::getNext ( )
inlinenoexcept

Returns the next node.

◆ getValue() [1/2]

template<class TYPE >
const Value& HashSet< TYPE >::Node::getValue ( ) const
inlinenoexcept

Returns the value of the node.

◆ getValue() [2/2]

template<class TYPE >
Value& HashSet< TYPE >::Node::getValue ( )
inlinenoexcept

Returns the value of the node.

◆ setNext()

template<class TYPE >
void HashSet< TYPE >::Node::setNext ( Node node)
inlinenoexcept

Sets the next node.