/// \brief Returns the color of this node
RBNodeColor getColor() const {
- //return color_;
if ((flags_ & FLAG_RED) != 0) {
return (RED);
} else {
} else {
flags_ &= ~FLAG_RED;
}
- color_ = color;
}
/// \brief return the next node which is bigger than current node
RBNode<T>* parent_;
RBNode<T>* left_;
RBNode<T>* right_;
- RBNodeColor color_;
//@}
/// \brief Relative name of the node.
parent_(NULL),
left_(NULL),
right_(NULL),
- color_(BLACK),
// dummy name, the value doesn't matter:
name_(isc::dns::Name::ROOT_NAME()),
down_(NULL),
parent_(NULL_NODE()),
left_(NULL_NODE()),
right_(NULL_NODE()),
- color_(RED),
name_(name),
down_(NULL_NODE()),
flags_(FLAG_RED)