hash_table.h File Reference

#include "data_structure_dll.h"
#include <basis/object_base.h>

Include dependency graph for hash_table.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  hashing_algorithm
 A hashing algorithm takes a key and derives a related integer from it. More...
class  hash_table< key_type, contents >
 Implements hashing into buckets for quick object access. More...

Functions

template<class key_type, class contents>
void copy_hash_table (hash_table< key_type, contents > &target, const hash_table< key_type, contents > &source)
 Copies the entire hash table, given a contents type that supports copying.


Function Documentation

template<class key_type, class contents>
void copy_hash_table ( hash_table< key_type, contents > &  target,
const hash_table< key_type, contents > &  source 
)

Copies the entire hash table, given a contents type that supports copying.

Provides a copy operation on hash tables where the contents object supports a copy constructor, which is not appropriate to require in general. The hash_table held in "target" will be wiped out and replaced with items equivalent to those in "source".

Definition at line 107 of file hash_table.cpp.

References hash_table< key_type, contents >::add(), class_name, deadly_error, FUNCDEF, hash_table< key_type, contents >::reset(), hash_table< key_type, contents >::table_access(), and hash_table< key_type, contents >::verify().


Generated on Fri Nov 21 04:31:06 2008 for HOOPLE Libraries by  doxygen 1.5.1