Logo Search packages:      
Sourcecode: icu version File versions  Download package

Hashtable Class Reference

#include <hash.h>

Inheritance diagram for Hashtable:


List of all members.

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 27 of file hash.h.

Public Member Functions

int32_t count () const
UBool equals (const Hashtable &that) const
const UHashElementfind (const UnicodeString &key) const
void * get (const UnicodeString &key) const
int32_t geti (const UnicodeString &key) const
 Hashtable ()
 Hashtable (UErrorCode &status)
 Hashtable (UKeyComparator *keyComp, UValueComparator *valueComp, UErrorCode &status)
 Hashtable (UBool ignoreKeyCase, UErrorCode &status)
const UHashElementnextElement (int32_t &pos) const
void * put (const UnicodeString &key, void *value, UErrorCode &status)
int32_t puti (const UnicodeString &key, int32_t value, UErrorCode &status)
void * remove (const UnicodeString &key)
void removeAll (void)
int32_t removei (const UnicodeString &key)
UKeyComparator * setKeyComparator (UKeyComparator *keyComp)
UValueComparator * setValueComparator (UValueComparator *valueComp)
UObjectDeleter * setValueDeleter (UObjectDeleter *fn)
 ~Hashtable ()

Static Public Member Functions

static void U_EXPORT2 operator delete (void *, void *) U_NO_THROW
static void U_EXPORT2 operator delete (void *p) U_NO_THROW
static void U_EXPORT2 operator delete[] (void *p) U_NO_THROW
static void *U_EXPORT2 operator new (size_t, void *ptr) U_NO_THROW
static void *U_EXPORT2 operator new (size_t size) U_NO_THROW
static void *U_EXPORT2 operator new[] (size_t size) U_NO_THROW

Private Member Functions

 Hashtable (const Hashtable &other)
void init (UHashFunction *keyHash, UKeyComparator *keyComp, UValueComparator *valueComp, UErrorCode &status)
Hashtableoperator= (const Hashtable &other)

Private Attributes

UHashtable hashObj

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

Generated by  Doxygen 1.6.0   Back to index