kmail
KMDict Class Reference
KMDict implements a lightweight dictionary with serial numbers as keys. More...
#include <kmdict.h>
Public Member Functions | |
void | clear () |
KMDictItem * | find (long key) |
void | insert (long key, KMDictItem *item) |
KMDict (int size=17) | |
void | remove (long key) |
void | replace (long key, KMDictItem *item) |
int | size () |
~KMDict () |
Detailed Description
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.
Definition at line 26 of file kmdict.h.
Constructor & Destructor Documentation
KMDict::KMDict | ( | int | size = 17 |
) |
KMDict::~KMDict | ( | ) |
Member Function Documentation
void KMDict::clear | ( | ) |
KMDictItem * KMDict::find | ( | long | key | ) |
Find an item by key.
Returns pointer to it, or 0 if not found.
Definition at line 107 of file kmdict.cpp.
void KMDict::insert | ( | long | key, | |
KMDictItem * | item | |||
) |
void KMDict::remove | ( | long | key | ) |
void KMDict::replace | ( | long | key, | |
KMDictItem * | item | |||
) |
int KMDict::size | ( | ) | [inline] |
The documentation for this class was generated from the following files: