home *** CD-ROM | disk | FTP | other *** search
- #ifndef __Bintree_h__
- #define __Bintree_h__
-
- class BintreeNode{
- public:
- BintreeNode(float key, void* object);
- ~BintreeNode();
-
- BintreeNode* parent;
- BintreeNode* leftChild;
- BintreeNode* rightChild;
-
- float key;
- void* object;
-
- void buildInOrderArray(int& pos, BintreeNode** array);
- };
-
-
- class Bintree{
- public:
- Bintree();
- ~Bintree();
-
- BintreeNode* root;
- BintreeNode** inOrderArray;
- int numNodes;
-
- void insert(float key, void* object);
-
- void clearTree();
- void buildInOrderArray();
- };
-
- #endif /* __Bintree_h__ */
-