ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
FibHeapNode Class Reference

#include <FibHeap.h>

Detailed Description

Definition at line 70 of file FibHeap.h.

Public Member Functions

 FibHeapNode ()
 
NodeIndexType GetIndexValue ()
 
NodeKeyValueType GetKeyValue ()
 
bool operator< (FibHeapNode &RHS)
 
void operator= (FibHeapNode &RHS)
 
void operator= (NodeKeyValueType newKeyVal)
 
bool operator== (FibHeapNode &RHS)
 
void Print ()
 
void SetIndexValue (NodeIndexType indexValue)
 
 ~FibHeapNode ()=default
 

Public Attributes

NodeIndexType m_Child
 
short m_Degree { 0 }
 
NodeIndexType m_Index
 
NodeKeyValueType m_Key { 0 }
 
NodeIndexType m_Left
 
bool m_Mark { false }
 
NodeIndexType m_Parent
 
NodeIndexType m_Right
 

Static Public Attributes

static const NodeKeyValueType NegativeInfinity
 
static const NodeIndexType NullNodeIndex
 

Constructor & Destructor Documentation

◆ FibHeapNode()

FibHeapNode::FibHeapNode ( )
inline

Definition at line 76 of file FibHeap.h.

References m_Child, m_Index, m_Left, m_Parent, m_Right, and NullNodeIndex.

Referenced by operator<(), operator=(), and operator==().

◆ ~FibHeapNode()

FibHeapNode::~FibHeapNode ( )
default

Member Function Documentation

◆ GetIndexValue()

NodeIndexType FibHeapNode::GetIndexValue ( )
inline

Index stores this node's location in the node array.

Definition at line 88 of file FibHeap.h.

References m_Index.

◆ GetKeyValue()

NodeKeyValueType FibHeapNode::GetKeyValue ( )
inline

Get key value. Key value can be set using operator=.

Definition at line 101 of file FibHeap.h.

References m_Key.

◆ operator<()

bool FibHeapNode::operator< ( FibHeapNode & RHS)
inline

Compare key value.

Definition at line 128 of file FibHeap.h.

References FibHeapNode(), m_Key, and operator<().

Referenced by operator<().

◆ operator=() [1/2]

void FibHeapNode::operator= ( FibHeapNode & RHS)
inline

Set key value from another node.

Definition at line 115 of file FibHeap.h.

References FibHeapNode(), and m_Key.

◆ operator=() [2/2]

void FibHeapNode::operator= ( NodeKeyValueType newKeyVal)
inline

Set key value (that the nodes are sorted based on)

Definition at line 108 of file FibHeap.h.

References m_Key.

◆ operator==()

bool FibHeapNode::operator== ( FibHeapNode & RHS)
inline

Compare key value.

Definition at line 122 of file FibHeap.h.

References FibHeapNode(), and m_Key.

◆ Print()

void FibHeapNode::Print ( )
inline

Definition at line 135 of file FibHeap.h.

References m_Key.

◆ SetIndexValue()

void FibHeapNode::SetIndexValue ( NodeIndexType indexValue)
inline

Definition at line 93 of file FibHeap.h.

References m_Index.

Member Data Documentation

◆ m_Child

NodeIndexType FibHeapNode::m_Child

Definition at line 143 of file FibHeap.h.

Referenced by FibHeapNode().

◆ m_Degree

short FibHeapNode::m_Degree { 0 }

Definition at line 144 of file FibHeap.h.

◆ m_Index

NodeIndexType FibHeapNode::m_Index

Definition at line 148 of file FibHeap.h.

Referenced by FibHeapNode(), GetIndexValue(), and SetIndexValue().

◆ m_Key

NodeKeyValueType FibHeapNode::m_Key { 0 }

Definition at line 147 of file FibHeap.h.

Referenced by GetKeyValue(), operator<(), operator=(), operator=(), operator==(), and Print().

◆ m_Left

NodeIndexType FibHeapNode::m_Left

Definition at line 140 of file FibHeap.h.

Referenced by FibHeapNode().

◆ m_Mark

bool FibHeapNode::m_Mark { false }

Definition at line 145 of file FibHeap.h.

◆ m_Parent

NodeIndexType FibHeapNode::m_Parent

Definition at line 142 of file FibHeap.h.

Referenced by FibHeapNode().

◆ m_Right

NodeIndexType FibHeapNode::m_Right

Definition at line 141 of file FibHeap.h.

Referenced by FibHeapNode().

◆ NegativeInfinity

const NodeKeyValueType FibHeapNode::NegativeInfinity
static

Definition at line 74 of file FibHeap.h.

◆ NullNodeIndex

const NodeIndexType FibHeapNode::NullNodeIndex
static

Definition at line 73 of file FibHeap.h.

Referenced by FibHeapNode(), and FibHeap::HeapNodeFromIndex().


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