Contains the source code from the course work throughout my undergraduate Computer Engineering degree at Brigham Young University. There is a mixture of Go, Python, C, C++, Java, VHDL, Verilog, Matlab, Bash, Assembly, etc..
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

br_node.h 482B

123456789101112131415161718192021
  1. #ifndef __BR_NODE_H__
  2. #define __BR_NODE_H__
  3. #include "RedBlackNodeInterface.h"
  4. using namespace std;
  5. class br_node : public RedBlackNodeInterface {
  6. public:
  7. br_node(string data);
  8. string data;
  9. int color; //red = 0, black = 1
  10. br_node* parent;
  11. br_node* left;
  12. br_node* right;
  13. string getWord();
  14. int getColor();
  15. RedBlackNodeInterface * getLeftChild();
  16. RedBlackNodeInterface * getRightChild();
  17. };
  18. #endif