This commit is contained in:
2024-08-07 09:12:07 -04:00
parent ca445435a0
commit fdfadd5c7e
1021 changed files with 73601 additions and 0 deletions

34
bsptree/TREENODE.TPP Normal file
View File

@@ -0,0 +1,34 @@
#ifndef _BSPTREE_TREENODE_HPP_
#error TREENODE.HPP must precede TREENODE.TPP
#endif
template <class T>
TreeNode<T>::TreeNode(void)
: mlpLeftNode(0), mlpRightNode(0)
{
mlpItem=::new T;
}
template <class T>
TreeNode<T>::TreeNode(const TreeNode<T> &someTreeNode)
{
mlpItem=::new T;
*this=someTreeNode;
}
template <class T>
TreeNode<T>::TreeNode(const T &someItem)
: mlpLeftNode(0), mlpRightNode(0)
{
mlpItem=::new T(someItem);
}
template <class T>
WORD TreeNode<T>::operator==(const TreeNode<T> &someTreeNode)const
{
return (mlpRightNode==someTreeNode.mlpRightNode&&
mlpLeftNode==someTreeNode.mlpLeftNode&&
*mlpItem==*someTreeNode.mlpItem);
}