INET Framework for OMNeT++/OMNEST
|
The node for interval tree. More...
#include <IntervalTree.h>
Public Member Functions | |
void | print (IntervalTreeNode *left, IntervalTreeNode *right) const |
Print the interval node information: set left = nil and right = root. More... | |
IntervalTreeNode () | |
Create an empty node. More... | |
IntervalTreeNode (const Interval *new_interval) | |
Create an node storing the interval. More... | |
~IntervalTreeNode () | |
Protected Attributes | |
const Interval * | stored_interval = nullptr |
interval stored in the node More... | |
simtime_t | key |
simtime_t | high |
simtime_t | max_high |
bool | red = false |
red or black node: if red = false then the node is black More... | |
IntervalTreeNode * | left = nullptr |
IntervalTreeNode * | right = nullptr |
IntervalTreeNode * | parent = nullptr |
Friends | |
class | IntervalTree |
class | IntervalTreeTest |
The node for interval tree.
inet::IntervalTreeNode::IntervalTreeNode | ( | ) |
Create an empty node.
Referenced by inet::IntervalTree::insert(), and inet::IntervalTree::IntervalTree().
inet::IntervalTreeNode::IntervalTreeNode | ( | const Interval * | new_interval | ) |
Create an node storing the interval.
inet::IntervalTreeNode::~IntervalTreeNode | ( | ) |
void inet::IntervalTreeNode::print | ( | IntervalTreeNode * | left, |
IntervalTreeNode * | right | ||
) | const |
Print the interval node information: set left = nil and right = root.
Referenced by inet::IntervalTree::recursivePrint().
|
friend |
|
friend |
|
protected |
|
protected |
Referenced by print(), inet::IntervalTree::query(), and inet::IntervalTree::recursiveInsert().
|
protected |
Referenced by inet::IntervalTree::deleteFixup(), inet::IntervalTree::deleteNode(), inet::IntervalTree::fixupMaxHigh(), inet::IntervalTree::getMinimum(), inet::IntervalTree::getPredecessor(), inet::IntervalTree::insert(), inet::IntervalTree::leftRotate(), print(), inet::IntervalTree::query(), inet::IntervalTree::recursiveInsert(), inet::IntervalTree::recursivePrint(), inet::IntervalTree::recursiveSearch(), inet::IntervalTree::rightRotate(), and inet::IntervalTree::~IntervalTree().
|
protected |
|
protected |
Referenced by inet::IntervalTree::deleteFixup(), inet::IntervalTree::deleteNode(), inet::IntervalTree::fixupMaxHigh(), inet::IntervalTree::getPredecessor(), inet::IntervalTree::getSuccessor(), inet::IntervalTree::insert(), inet::IntervalTree::leftRotate(), print(), inet::IntervalTree::recursiveInsert(), and inet::IntervalTree::rightRotate().
|
protected |
red or black node: if red = false then the node is black
Referenced by inet::IntervalTree::deleteFixup(), inet::IntervalTree::deleteNode(), inet::IntervalTree::insert(), and print().
|
protected |
Referenced by inet::IntervalTree::deleteFixup(), inet::IntervalTree::deleteNode(), inet::IntervalTree::fixupMaxHigh(), inet::IntervalTree::getMaximum(), inet::IntervalTree::getSuccessor(), inet::IntervalTree::insert(), inet::IntervalTree::leftRotate(), print(), inet::IntervalTree::query(), inet::IntervalTree::recursiveInsert(), inet::IntervalTree::recursivePrint(), inet::IntervalTree::recursiveSearch(), inet::IntervalTree::rightRotate(), and inet::IntervalTree::~IntervalTree().
|
protected |
interval stored in the node
Referenced by inet::IntervalTree::deleteNode(), print(), inet::IntervalTree::query(), inet::IntervalTree::recursiveSearch(), and ~IntervalTreeNode().