GenericSplayTree Class Template Reference

A splay tree class that uses a general set of classes for keys. More...

#include <GenericSplayTree.h>

Inheritance diagram for GenericSplayTree::

AbstractSplayTree< GenericSplayTreeItem< T >, T > List of all members.

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.


Detailed Description

template<class T>
class GenericSplayTree< T >

A splay tree class that uses a general set of classes for keys.

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)

See also:
SimpleSplayTree


Member Function Documentation

template<class T>
void GenericSplayTree< T >::extract GenericSplayTreeItem< T > *    item,
bool &    status
[protected]
 

Remove item from the tree.

Set the value of status to true if the item existed in the tree.


The documentation for this class was generated from the following file: