21 lines
604 B
C++
21 lines
604 B
C++
#include "RedBlackTreeFactory.h"
|
|
#include "br_tree.h"
|
|
//You may add #include statements here
|
|
|
|
/*
|
|
You will MODIFY THIS DOCUMENT.
|
|
*/
|
|
//=======================================================================================
|
|
/*
|
|
getRedBlackTree()
|
|
|
|
Creates and returns an object whose class extends RedBlackTreeInterface.
|
|
This should be an object of a class you have created.
|
|
|
|
Example: If you made a class called "RedBlackTree", you might say, "return new RedBlackTree();".
|
|
*/
|
|
RedBlackTreeInterface * RedBlackTreeFactory::getRedBlackTree()
|
|
{
|
|
return new br_tree();//Modify this line
|
|
}
|