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.

RedBlackTreeFactory.cpp 604B

1234567891011121314151617181920
  1. #include "RedBlackTreeFactory.h"
  2. #include "br_tree.h"
  3. //You may add #include statements here
  4. /*
  5. You will MODIFY THIS DOCUMENT.
  6. */
  7. //=======================================================================================
  8. /*
  9. getRedBlackTree()
  10. Creates and returns an object whose class extends RedBlackTreeInterface.
  11. This should be an object of a class you have created.
  12. Example: If you made a class called "RedBlackTree", you might say, "return new RedBlackTree();".
  13. */
  14. RedBlackTreeInterface * RedBlackTreeFactory::getRedBlackTree()
  15. {
  16. return new br_tree();//Modify this line
  17. }