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

Hashtable Class Reference

Hashtable is a thin C++ wrapper around UHashtable, a general-purpose void* hashtable implemented in C. More...

#include <hash.h>

List of all members.

Public Methods

 Hashtable (UErrorCode& status)
 Hashtable ()
 Construct a hashtable, _disregarding any error_. More...

 ~Hashtable ()
 Non-virtual destructor; make this virtual if Hashtable is subclassed in the future. More...

UObjectDeleter setValueDeleter (UObjectDeleter fn)
int32_t count () const
void* put (const UnicodeString& key, void* value, UErrorCode& status)
void* get (const UnicodeString& key) const
void* remove (const UnicodeString& key)
const UHashElementnextElement (int32_t& pos) const


Detailed Description

Hashtable is a thin C++ wrapper around UHashtable, a general-purpose void* hashtable implemented in C.

Hashtable is designed to be idiomatic and easy-to-use in C++.

Hashtable is an INTERNAL CLASS.

Definition at line 24 of file hash.h.


Constructor & Destructor Documentation

Hashtable::Hashtable ( UErrorCode & status ) [inline]
 

Definition at line 59 of file hash.h.

Hashtable::Hashtable ( ) [inline]
 

Construct a hashtable, _disregarding any error_.

Use this constructor with caution.

Definition at line 70 of file hash.h.

Hashtable::~Hashtable ( ) [inline]
 

Non-virtual destructor; make this virtual if Hashtable is subclassed in the future.

Definition at line 79 of file hash.h.


Member Function Documentation

int32_t Hashtable::count ( ) const [inline]
 

Definition at line 90 of file hash.h.

void * Hashtable::get ( const UnicodeString & key ) const [inline]
 

Definition at line 98 of file hash.h.

Referenced by CollationCache::Find().

const UHashElement * Hashtable::nextElement ( int32_t & pos ) const [inline]
 

Definition at line 106 of file hash.h.

void * Hashtable::put ( const UnicodeString & key,
void * value,
UErrorCode & status ) [inline]
 

Definition at line 94 of file hash.h.

Referenced by CollationCache::Add().

void * Hashtable::remove ( const UnicodeString & key ) [inline]
 

Definition at line 102 of file hash.h.

UObjectDeleter Hashtable::setValueDeleter ( UObjectDeleter fn ) [inline]
 

Definition at line 86 of file hash.h.


The documentation for this class was generated from the following file:
Generated at Tue Dec 5 17:56:09 2000 for ICU by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000