Files
Work/bsptree/Bintree.hpp
2024-08-07 09:12:07 -04:00

44 lines
749 B
C++

#ifndef _BSPTREE_BINARYTREE_HPP_
#define _BSPTREE_BINARYTREE_HPP_
#ifndef _BSPTREE_BTREE_HPP_
#include <bsptree/btree.hpp>
#endif
template <class T>
class BinaryTree : public BTree<T>
{
public:
BinaryTree(void);
virtual ~BinaryTree();
BinaryTree<T> &operator=(const BinaryTree<T> &someBinaryTree);
TreeNode<T> *rootNode(void);
private:
};
template <class T>
inline
BinaryTree<T>::BinaryTree(void)
{
}
template <class T>
inline
BinaryTree<T>::~BinaryTree()
{
}
template <class T>
inline
BinaryTree<T> &BinaryTree<T>::operator=(const BinaryTree<T> &someBinaryTree)
{
(BTree<T>&)*this=(BTree<T>&)someBinaryTree;
return *this;
}
template <class T>
inline
TreeNode<T> *BinaryTree<T>::rootNode(void)
{
return BTree<T>::rootNode();
}
#endif