gavra

RBNode.h

May 7th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. enum Color
  2. {
  3.     RED, BLACK
  4. };     
  5.  
  6. class RBNode
  7. {
  8.     private:
  9.         int key;
  10.         Color color;
  11.         RBNode* left;
  12.         RBNode* right;
  13.         RBNode* parent;
  14.    
  15.     public:
  16.         RBNode(int key, Color color);
  17.  
  18.     friend class RedBlackTree;
  19. };
Advertisement
Add Comment
Please, Sign In to add comment