1
0
Fork 0
school/cs235/final/br_node.h

22 linhas
482 B
C++

#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