kmail Library API Documentation

kmdict.h

00001 /* simple hash table for kmail. inspired by QDict 00002 */ 00003 00004 #ifndef __KMDICT 00005 #define __KMDICT 00006 00007 00008 class KMDictItem 00009 { 00010 public: 00011 long key; 00012 KMDictItem *next; 00013 }; 00014 00015 00016 class KMDict 00017 { 00018 public: 00020 KMDict(int size = 17); 00021 00023 ~KMDict(); 00024 00026 void init(int size); 00027 00029 void clear(); 00030 00032 int size() { return mSize; } 00033 00035 void replace(long key, KMDictItem *item); 00036 00038 void remove(long key); 00039 00041 KMDictItem *find(long key); 00042 00043 protected: 00045 void removeFollowing(KMDictItem *item, long key); 00046 00048 int mSize; 00049 00051 KMDictItem **mVecs; 00052 }; 00053 00054 #endif /* __KMDICT */
KDE Logo
This file is part of the documentation for kmail Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:00 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003