The node for interval tree. More...
#include <interval_tree.h>
Public Member Functions | |
IntervalTreeNode () | |
Create an empty node. | |
IntervalTreeNode (SimpleInterval *new_interval) | |
Create an node storing the interval. | |
void | print (IntervalTreeNode *left, IntervalTreeNode *right) const |
Print the interval node information: set left = nil and right = root. | |
~IntervalTreeNode () | |
Protected Attributes | |
double | high |
double | key |
IntervalTreeNode * | left |
double | max_high |
IntervalTreeNode * | parent |
bool | red |
red or black node: if red = false then the node is black | |
IntervalTreeNode * | right |
SimpleInterval * | stored_interval |
interval stored in the node | |
Friends | |
class | IntervalTree |
The node for interval tree.
Definition at line 62 of file interval_tree.h.
Create an empty node.
Definition at line 45 of file interval_tree.cpp.
fcl::IntervalTreeNode::IntervalTreeNode | ( | SimpleInterval * | new_interval | ) |
Create an node storing the interval.
Definition at line 47 of file interval_tree.cpp.
Definition at line 53 of file interval_tree.cpp.
void fcl::IntervalTreeNode::print | ( | IntervalTreeNode * | left, |
IntervalTreeNode * | right | ||
) | const |
Print the interval node information: set left = nil and right = root.
Definition at line 321 of file interval_tree.cpp.
friend class IntervalTree [friend] |
Definition at line 64 of file interval_tree.h.
double fcl::IntervalTreeNode::high [protected] |
Definition at line 83 of file interval_tree.h.
double fcl::IntervalTreeNode::key [protected] |
Definition at line 81 of file interval_tree.h.
IntervalTreeNode* fcl::IntervalTreeNode::left [protected] |
Definition at line 90 of file interval_tree.h.
double fcl::IntervalTreeNode::max_high [protected] |
Definition at line 85 of file interval_tree.h.
IntervalTreeNode* fcl::IntervalTreeNode::parent [protected] |
Definition at line 94 of file interval_tree.h.
bool fcl::IntervalTreeNode::red [protected] |
red or black node: if red = false then the node is black
Definition at line 88 of file interval_tree.h.
IntervalTreeNode* fcl::IntervalTreeNode::right [protected] |
Definition at line 92 of file interval_tree.h.
SimpleInterval* fcl::IntervalTreeNode::stored_interval [protected] |
interval stored in the node
Definition at line 79 of file interval_tree.h.