#include <GenericSplayTree.h>
Inheritance diagram for GenericSplayTree::

Public Methods | |
| GenericSplayTree (const char *nameBuff="Unnamed") | |
| Constructor, which specifies a name for the tree. | |
| bool & | duplicate () |
Returns the value of duplicate_flag. | |
| bool & | check_duplicates () |
Returns the value of check_duplicates_flag. | |
Protected Methods | |
| GenericSplayTreeItem< T > * | insert (T *key) |
| Insert key into the splay tree and return the item used for it in the tree. | |
| void | extract (GenericSplayTreeItem< T > *item, bool &status) |
| Remove item from the tree. More... | |
Protected Attributes | |
| bool | duplicate_flag |
| TODO. | |
| bool | check_duplicates_flag |
| TODO. | |
The GenericSplayTree class is derived from AbstractSplayTree, which defines the basic operations of the splay tree. The keys are assumed to be classes for which the following operations are defined: int compare(const KEY* key) const int write(ostream& os) const int read(istream& is)
|
||||||||||||||||
|
Remove item from the tree. Set the value of status to true if the item existed in the tree. |