ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::FibonacciHeapPriorityQueue< T, P, A >::Node Struct Reference

a node of the heap More...

#include <ADS/priority/FibonacciHeapPriorityQueue.h>

Public attributes

P priority
 the priority
T value
 the item
Node * parent = nullptr
 the parent, nullptr for a root
Node * child = nullptr
 a child, the entry of their circular list
Node * left = this
 the previous node of its circular list
Node * right = this
 the next node of its circular list
int degree = 0
 the number of children
bool mark = false
 whether it lost a child since it became one

Detailed description

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
struct ADS::FibonacciHeapPriorityQueue< T, P, A >::Node

a node of the heap

Member data documentation

◆ child

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
Node* ADS::FibonacciHeapPriorityQueue< T, P, A >::Node::child = nullptr

a child, the entry of their circular list

◆ degree

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
int ADS::FibonacciHeapPriorityQueue< T, P, A >::Node::degree = 0

the number of children

◆ left

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
Node* ADS::FibonacciHeapPriorityQueue< T, P, A >::Node::left = this

the previous node of its circular list

◆ mark

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
bool ADS::FibonacciHeapPriorityQueue< T, P, A >::Node::mark = false

whether it lost a child since it became one

◆ parent

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
Node* ADS::FibonacciHeapPriorityQueue< T, P, A >::Node::parent = nullptr

the parent, nullptr for a root

◆ priority

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
P ADS::FibonacciHeapPriorityQueue< T, P, A >::Node::priority

the priority

◆ right

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
Node* ADS::FibonacciHeapPriorityQueue< T, P, A >::Node::right = this

the next node of its circular list

◆ value

template<class T, std::totally_ordered P = int, class A = HugePageAllocator< T >>
T ADS::FibonacciHeapPriorityQueue< T, P, A >::Node::value

the item


The documentation for this struct was generated from the following file: