Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Index Class Reference

#include <index.h>

Inheritance diagram for Index:

alist_index hash_index index_ref tree_string_index tree_string_index<elem_t *> ts_ptr_index List of all members.

Public Methods

virtual ~Index (void)
virtual elem_t lookup (key_t) const = 0
virtual bool exists (key_t) const = 0
virtual index_handle<key_t, elem_t> enter (key_t, elem_t) = 0
virtual void remove (key_t) = 0
virtual index_handle<key_t, elem_t> lookup_handle (key_t) const = 0
virtual elem_t elem (index_handle<key_t, elem_t>) const = 0
virtual void remove (index_handle<key_t, elem_t>) = 0
virtual void clear (void) = 0

Protected Methods

 Index (void)
index_handle<key_t, elem_t> build_handle (referenced_item *data) const
referenced_itemfrom_handle (index_handle<key_t, elem_t> the_handle) const

Friends

class  index_ref<key_t,elem_t>


Detailed Description

template<class key_t, class elem_t> class Index


Constructor & Destructor Documentation

template<class key_t, class elem_t>
Index<key_t, elem_t>::Index<key_t, elem_t> (
void) [inline, protected]

template<class key_t, class elem_t>
Index<key_t, elem_t>::~Index<key_t, elem_t> (
void) [inline, virtual]


Member Function Documentation

template<class key_t, class elem_t>
index_handle<key_t,elem_t> Index<key_t, elem_t>::build_handle<key_t, elem_t> (
referenced_item * data) const [inline, protected]

template<class key_t, class elem_t>
virtual void Index<key_t, elem_t>::clear (
void) [pure virtual]

Reimplemented in alist_index, hash_index, index_ref, tree_string_index, tree_string_index<elem_t *>, and ts_ptr_index.

template<class key_t, class elem_t>
virtual elem_t Index<key_t, elem_t>::elem (
index_handle<key_t,elem_t> handle) const [pure virtual]

Reimplemented in alist_index, hash_index, and index_ref.

template<class key_t, class elem_t>
virtual index_handle<key_t, elem_t> Index<key_t, elem_t>::enter (
key_t the_key,
elem_t the_elem) [pure virtual]

Reimplemented in alist_index, hash_index, and index_ref.

template<class key_t, class elem_t>
virtual bool Index<key_t, elem_t>::exists (
key_t the_key) const [pure virtual]

Reimplemented in alist_index, hash_index, and index_ref.

template<class key_t, class elem_t>
referenced_item * Index<key_t, elem_t>::from_handle (
index_handle<key_t,elem_t> the_handle) const [inline, protected]

template<class key_t, class elem_t>
virtual elem_t Index<key_t, elem_t>::lookup (
key_t the_key) const [pure virtual]

Reimplemented in alist_index, hash_index, and index_ref.

template<class key_t, class elem_t>
virtual index_handle<key_t, elem_t> Index<key_t, elem_t>::lookup_handle (
key_t the_key) const [pure virtual]

Reimplemented in alist_index, hash_index, and index_ref.

template<class key_t, class elem_t>
virtual void Index<key_t, elem_t>::remove (
index_handle<key_t,elem_t> handle) [pure virtual]

Reimplemented in alist_index, hash_index, and index_ref.

template<class key_t, class elem_t>
virtual void Index<key_t, elem_t>::remove (
key_t the_key) [pure virtual]

Reimplemented in alist_index, hash_index, and index_ref.


Friends And Related Function Documentation

template<class key_t, class elem_t>
friend class index_ref<key_t,elem_t> [friend]


The documentation for this class was generated from the following file:
Generated at Mon Jul 31 13:43:16 2000 for NCI SUIF by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000