school/cs235/final/br_node.h

22 lines
482 B
C
Raw Normal View History

2016-04-06 20:46:10 -07:00
#ifndef __BR_NODE_H__
#define __BR_NODE_H__
#include "RedBlackNodeInterface.h"
using namespace std;
class br_node : public RedBlackNodeInterface {
public:
br_node(string data);
string data;
int color; //red = 0, black = 1
br_node* parent;
br_node* left;
br_node* right;
string getWord();
int getColor();
RedBlackNodeInterface * getLeftChild();
RedBlackNodeInterface * getRightChild();
};
#endif