Public Member Functions | List of all members
QCDict Class Reference
Inheritance diagram for QCDict:
QGDict QCollection

Public Member Functions

 QCDict (uint size, uint kt, bool caseSensitive, bool copyKeys)
 
QCacheItemfind_string (const QString &key) const
 
QCacheItemfind_ascii (const char *key) const
 
QCacheItemfind_int (long key) const
 
QCacheItemtake_string (const QString &key)
 
QCacheItemtake_ascii (const char *key)
 
QCacheItemtake_int (long key)
 
bool insert_string (const QString &key, const QCacheItem *ci)
 
bool insert_ascii (const char *key, const QCacheItem *ci)
 
bool insert_int (long key, const QCacheItem *ci)
 
bool remove_string (QCacheItem *item)
 
bool remove_ascii (QCacheItem *item)
 
bool remove_int (QCacheItem *item)
 
void statistics ()
 
- Public Member Functions inherited from QGDict
uint count () const
 
uint size () const
 
QCollection::Item look_string (const QString &key, QCollection::Item, int)
 
QCollection::Item look_ascii (const char *key, QCollection::Item, int)
 
QCollection::Item look_int (long key, QCollection::Item, int)
 
QCollection::Item look_ptr (void *key, QCollection::Item, int)
 
QDataStreamread (QDataStream &)
 
QDataStreamwrite (QDataStream &) const
 
- Public Member Functions inherited from QCollection
bool autoDelete () const
 
void setAutoDelete (bool enable)
 

Additional Inherited Members

- Public Types inherited from QCollection
typedef void * Item
 
- Protected Types inherited from QGDict
enum  KeyType { StringKey, AsciiKey, IntKey, PtrKey }
 
- Protected Member Functions inherited from QGDict
 QGDict (uint len, KeyType kt, bool cs, bool ck)
 
 QGDict (const QGDict &)
 
 ~QGDict ()
 
QGDictoperator= (const QGDict &)
 
bool remove_string (const QString &key, QCollection::Item item=0)
 
bool remove_ascii (const char *key, QCollection::Item item=0)
 
bool remove_int (long key, QCollection::Item item=0)
 
bool remove_ptr (void *key, QCollection::Item item=0)
 
QCollection::Item take_string (const QString &key)
 
QCollection::Item take_ascii (const char *key)
 
QCollection::Item take_int (long key)
 
QCollection::Item take_ptr (void *key)
 
void clear ()
 
void resize (uint)
 
int hashKeyString (const QString &)
 
int hashKeyAscii (const char *)
 
void statistics () const
 
virtual QDataStreamread (QDataStream &, QCollection::Item &)
 
virtual QDataStreamwrite (QDataStream &, QCollection::Item) const
 
- Protected Member Functions inherited from QCollection
 QCollection ()
 
 QCollection (const QCollection &)
 
virtual ~QCollection ()
 
virtual Item newItem (Item)
 
virtual void deleteItem (Item)
 
- Protected Attributes inherited from QCollection
bool del_item
 

Detailed Description

Definition at line 187 of file qgcache.cpp.

Constructor & Destructor Documentation

QCDict::QCDict ( uint  size,
uint  kt,
bool  caseSensitive,
bool  copyKeys 
)
inline

Definition at line 190 of file qgcache.cpp.

191  : QGDict( size, (KeyType)kt, caseSensitive, copyKeys ) {}
QGDict(uint len, KeyType kt, bool cs, bool ck)
Definition: qgdict.cpp:222
KeyType
Definition: qgdict.h:119
uint size() const
Definition: qgdict.h:108

Member Function Documentation

QCacheItem* QCDict::find_ascii ( const char *  key) const
inline

Definition at line 195 of file qgcache.cpp.

196  { return (QCacheItem*)((QCDict*)this)->look_ascii(key, 0, 0); }
def key(type, name=None)
Definition: graph.py:13
QCacheItem* QCDict::find_int ( long  key) const
inline

Definition at line 197 of file qgcache.cpp.

198  { return (QCacheItem*)((QCDict*)this)->look_int(key, 0, 0); }
def key(type, name=None)
Definition: graph.py:13
QCacheItem* QCDict::find_string ( const QString key) const
inline

Definition at line 193 of file qgcache.cpp.

194  { return (QCacheItem*)((QCDict*)this)->look_string(key, 0, 0); }
bool QCDict::insert_ascii ( const char *  key,
const QCacheItem ci 
)
inline

Definition at line 209 of file qgcache.cpp.

210  { return QGDict::look_ascii(key,(Item)ci,1)!=0;}
QCollection::Item look_ascii(const char *key, QCollection::Item, int)
Definition: qgdict.cpp:422
def key(type, name=None)
Definition: graph.py:13
void * Item
Definition: qcollection.h:60
bool QCDict::insert_int ( long  key,
const QCacheItem ci 
)
inline

Definition at line 211 of file qgcache.cpp.

212  { return QGDict::look_int(key,(Item)ci,1)!=0;}
QCollection::Item look_int(long key, QCollection::Item, int)
Definition: qgdict.cpp:461
def key(type, name=None)
Definition: graph.py:13
void * Item
Definition: qcollection.h:60
bool QCDict::insert_string ( const QString key,
const QCacheItem ci 
)
inline

Definition at line 207 of file qgcache.cpp.

208  { return QGDict::look_string(key,(Item)ci,1)!=0;}
QCollection::Item look_string(const QString &key, QCollection::Item, int)
Definition: qgdict.cpp:382
void * Item
Definition: qcollection.h:60
bool QCDict::remove_ascii ( QCacheItem item)
inline

Definition at line 216 of file qgcache.cpp.

217  { return QGDict::remove_ascii((const char *)item->key,item); }
bool remove_ascii(const char *key, QCollection::Item item=0)
Definition: qgdict.cpp:747
void * key
Definition: qgcache.cpp:66
bool QCDict::remove_int ( QCacheItem item)
inline

Definition at line 218 of file qgcache.cpp.

219  { return QGDict::remove_int((intptr_t)item->key,item);}
void * key
Definition: qgcache.cpp:66
bool remove_int(long key, QCollection::Item item=0)
Definition: qgdict.cpp:762
bool QCDict::remove_string ( QCacheItem item)
inline

Definition at line 214 of file qgcache.cpp.

215  { return QGDict::remove_string(*((QString*)(item->key)),item); }
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
Definition: qstring.h:350
bool remove_string(const QString &key, QCollection::Item item=0)
Definition: qgdict.cpp:732
void * key
Definition: qgcache.cpp:66
void QCDict::statistics ( )
inline

Definition at line 221 of file qgcache.cpp.

221 { QGDict::statistics(); }
void statistics() const
Definition: qgdict.cpp:930
QCacheItem* QCDict::take_ascii ( const char *  key)
inline

Definition at line 202 of file qgcache.cpp.

203  { return (QCacheItem*)QGDict::take_ascii(key); }
def key(type, name=None)
Definition: graph.py:13
QCollection::Item take_ascii(const char *key)
Definition: qgdict.cpp:804
QCacheItem* QCDict::take_int ( long  key)
inline

Definition at line 204 of file qgcache.cpp.

205  { return (QCacheItem*)QGDict::take_int(key); }
def key(type, name=None)
Definition: graph.py:13
QCollection::Item take_int(long key)
Definition: qgdict.cpp:822
QCacheItem* QCDict::take_string ( const QString key)
inline

Definition at line 200 of file qgcache.cpp.

201  { return (QCacheItem*)QGDict::take_string(key); }
QCollection::Item take_string(const QString &key)
Definition: qgdict.cpp:788

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