KSquare Utilities
KKB::RBnode< Entry > Class Template Reference

#include <RBTree.h>

Public Member Functions

 RBnode (RBnodePtr _parent, RBnodePtr _left, RBnodePtr _right, RBcolor _color, EntryPtr _entry)
 
RBcolor Color ()
 
void Color (RBcolor _color)
 
EntryPtr Data ()
 
void Data (EntryPtr _data)
 
RBnodePtr Left ()
 
void Left (RBnodePtr _left)
 
RBnodePtr Parent ()
 
void Parent (RBnodePtr _parent)
 
RBnodePtr Right ()
 
void Right (RBnodePtr _right)
 

Detailed Description

template<class Entry>
class KKB::RBnode< Entry >

Definition at line 33 of file RBTree.h.

Constructor & Destructor Documentation

template<class Entry >
KKB::RBnode< Entry >::RBnode ( RBnodePtr  _parent,
RBnodePtr  _left,
RBnodePtr  _right,
RBcolor  _color,
EntryPtr  _entry 
)

Definition at line 281 of file RBTree.h.

286  :
287  parent (_parent),
288  left (_left),
289  right (_right),
290  entry (_entry),
291  color (_color)
292 {}

Member Function Documentation

template<class Entry >
RBcolor KKB::RBnode< Entry >::Color ( )
inline

Definition at line 47 of file RBTree.h.

47 {return color;}
template<class Entry >
void KKB::RBnode< Entry >::Color ( RBcolor  _color)
inline

Definition at line 53 of file RBTree.h.

53 {color = _color;}
template<class Entry >
EntryPtr KKB::RBnode< Entry >::Data ( )
inline

Definition at line 48 of file RBTree.h.

48 {return entry;}
template<class Entry >
void KKB::RBnode< Entry >::Data ( EntryPtr  _data)
inline

Definition at line 54 of file RBTree.h.

54 {entry = _data;}
template<class Entry >
RBnodePtr KKB::RBnode< Entry >::Left ( )
inline

Definition at line 49 of file RBTree.h.

49 {return left;}
template<class Entry >
void KKB::RBnode< Entry >::Left ( RBnodePtr  _left)
inline

Definition at line 55 of file RBTree.h.

55 {left = _left;}
template<class Entry >
RBnodePtr KKB::RBnode< Entry >::Parent ( )
inline

Definition at line 50 of file RBTree.h.

50 {return parent;}
template<class Entry >
void KKB::RBnode< Entry >::Parent ( RBnodePtr  _parent)
inline

Definition at line 56 of file RBTree.h.

56 {parent = _parent;}
template<class Entry >
RBnodePtr KKB::RBnode< Entry >::Right ( )
inline

Definition at line 51 of file RBTree.h.

51 {return right;}
template<class Entry >
void KKB::RBnode< Entry >::Right ( RBnodePtr  _right)
inline

Definition at line 57 of file RBTree.h.

57 {right = _right;}

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