diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-09-03 20:02:55 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-09-03 21:02:00 +0200 |
commit | 533bad2a1503973aaf8186691422c2eda91d02d4 (patch) | |
tree | f7e52f62416048859aa9bde8425e20aac0e7c669 /kmail/tdemdict.h | |
parent | 8144d5434bbd1c4448a37695aed6ad3d348043d8 (diff) | |
download | tdepim-533bad2a1503973aaf8186691422c2eda91d02d4.tar.gz tdepim-533bad2a1503973aaf8186691422c2eda91d02d4.zip |
Additional k => tde renaming and fixes
Diffstat (limited to 'kmail/tdemdict.h')
-rw-r--r-- | kmail/tdemdict.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/kmail/tdemdict.h b/kmail/tdemdict.h deleted file mode 100644 index 6cbbefd5a..000000000 --- a/kmail/tdemdict.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * simple hash table for kmail. inspired by TQDict - */ - -#ifndef __KMDICT -#define __KMDICT - -/** - * @short Class representing items in a KMDict - */ -class KMDictItem -{ -public: - long key; - KMDictItem *next; -}; - -/** - * @short KMDict implements a lightweight dictionary with serial numbers as keys. - * - * KMDict is a leightweight dictionary used exclusively by KMMsgDict. It uses - * serial numbers as keys. - * - * @author Ronen Tzur <rtzur@shani.net> - */ -class KMDict -{ - friend class MessageDictTester; -public: - /** Creates a hash table with @p size columns. */ - KMDict(int size = 17); - - /** Destroys the hash table object. */ - ~KMDict(); - - /** Clears the hash table, removing all items. */ - void clear(); - - /** Returns the size of the hash table. */ - int size() { return mSize; } - - /** Inserts an item, replacing old ones with the same key. */ - void replace(long key, KMDictItem *item); - - /** Inserts an item without replacing ones with the same key. */ - void insert(long key, KMDictItem *item); - - /** Removes an item. */ - void remove(long key); - - /** Find an item by key. Returns pointer to it, or 0 if not found. */ - KMDictItem *find(long key); - -private: - /** Removes all items _following_ @p item with key @p key. */ - void removeFollowing(KMDictItem *item, long key); - - /** Initializes the hash table to @p size colums. */ - void init(int size); - - /** The size of the hash. */ - int mSize; - - /** The buckets. */ - KMDictItem **mVecs; -}; - -#endif /* __KMDICT */ |