16 #ifndef SURGSIM_DATASTRUCTURES_TREE_H 17 #define SURGSIM_DATASTRUCTURES_TREE_H 24 namespace DataStructures
43 void setRoot(std::shared_ptr<TreeNode> root);
46 std::shared_ptr<TreeNode>
getRoot()
const;
69 std::shared_ptr<TreeNode> m_root;
77 #endif // SURGSIM_DATASTRUCTURES_TREE_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
Basic tree structure.
Definition: Tree.h:32
virtual ~Tree()
Destructor.
Definition: Tree.cpp:28
virtual bool isEqual(const Tree &tree) const
Recurses through the tree, starting at the root.
Definition: Tree.cpp:42
Tree()
Constructor. After construction, the root is null.
Definition: Tree.cpp:24
bool operator==(const Tree &tree) const
If the trees are not of the same type, returns false; otherwise, compares with the implementation of ...
Definition: Tree.cpp:32
void setRoot(std::shared_ptr< TreeNode > root)
Sets the root of the tree.
Definition: Tree.cpp:47
bool operator!=(const Tree &tree) const
If the trees are not of the same type, returns false; otherwise, compares with the implementation of ...
Definition: Tree.cpp:37
std::shared_ptr< TreeNode > getRoot() const
Definition: Tree.cpp:52