nfd::name_tree::Node Class Reference

a hashtable node More...

#include <daemon/table/name-tree-hashtable.hpp>

+ Inheritance diagram for nfd::name_tree::Node:
+ Collaboration diagram for nfd::name_tree::Node:

Public Member Functions

 Node (HashValue h, const Name &name)
 ~Node ()

Public Attributes

Entry entry
const HashValue hash

Detailed Description

a hashtable node

Zero or more nodes can be added to a hashtable bucket. They are organized as a doubly linked list through prev and next pointers.

Definition at line 61 of file name-tree-hashtable.hpp.

Constructor & Destructor Documentation

◆ Node()

nfd::name_tree::Node::Node ( HashValue  h,
const Name &  name 
entry.getName() == name
getNode(entry) == this

Definition at line 92 of file name-tree-hashtable.cpp.

◆ ~Node()

nfd::name_tree::Node::~Node ( )
prev == nullptr
next == nullptr

Definition at line 100 of file name-tree-hashtable.cpp.

Member Data Documentation

◆ entry

Entry nfd::name_tree::Node::entry

Definition at line 78 of file name-tree-hashtable.hpp.

◆ hash

const HashValue nfd::name_tree::Node::hash

Definition at line 75 of file name-tree-hashtable.hpp.

◆ next

Node* nfd::name_tree::Node::next

Definition at line 77 of file name-tree-hashtable.hpp.

◆ prev

Node* nfd::name_tree::Node::prev

Definition at line 76 of file name-tree-hashtable.hpp.