FX::QDictBase< keytype, type > Class Template Reference

#include <qdictbase.h>

Inheritance diagram for FX::QDictBase< keytype, type >:

FX::QDict< type > FX::QHostAddressDict< type > FX::QIntDict< type > FX::QPtrDict< type > FX::FXLRUCache< FX::QDict< type > > FX::FXLRUCache< FX::QIntDict< type > > List of all members.

Detailed Description

template<class keytype, class type>
class FX::QDictBase< keytype, type >

Base implementation class for all QTL dictionary classes.

Some notes on observed behaviour deduced by real-world testing:

Definition at line 70 of file qdictbase.h.

Public Types

typedef keytype KeyType
typedef type ItemType
 HasSlowKeyCompare
enum  { HasSlowKeyCompare }

Public Member Functions

 QDictBase (uint _size, bool wantAutoDel=false)
 ~QDictBase ()
 QDictBase (const QDictBase< keytype, type > &o)
QDictBase< keytype, type > & operator= (const QDictBase< keytype, type > &o)
bool autoDelete () const
void setAutoDelete (bool a)
uint count () const
bool isEmpty () const
uint size () const
void clear ()
void append (const QDictBase< keytype, type > &o)
QDictBase< keytype, type > & operator+= (const QDictBase< keytype, type > &o)
void resize (uint newsize)
void safeResize (uint newsize) throw ()
void spread (float *full, float *slotsspread, float *avrgkeysperslot, float *spread) const
void statistics () const
FXint dictionaryBias () const throw ()

Protected Types

typedef std::map< keytype,
hashitemlist > 
keyitemlist
typedef keyitemlist::value_type keyitem

Protected Member Functions

keyitemfindKey (FXuint h, const keytype &k)
const keyitemfindKey (FXuint h, const keytype &k) const
void insert (FXuint h, const keytype &k, type *d)
void replace (FXuint h, const keytype &k, type *d)
bool remove (FXuint h, const keytype &k)
type * take (FXuint h, const keytype &k)
type * find (FXuint h, const keytype &k) const
virtual void deleteItem (type *d)=0

Friends

class QDictBaseIterator< keytype, type >


The documentation for this class was generated from the following file:
(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:37 2009 for TnFOX by doxygen v1.4.7