ISLEman
Public Member Functions | Protected Types | Protected Member Functions | Friends | List of all members
QGDict Class Reference

The QGDict class is an internal class for implementing QDict template classes. More...

#include <qgdict.h>

Inheritance diagram for QGDict:
QCollection QAsciiDict< type > QCDict QIntDict< type > QIntDict< char > QIntDict< ClassDef > QIntDict< Definition > QIntDict< MemberDef > QIntDict< MemberGroup > QIntDict< MemberGroupInfo > QIntDict< RefItem > QIntDict< SearchIndexList > QIntDict< T > QIntDict< uint > QIntDict< URL > QIntDict< URLInfo > QPtrDict< type >

Public Member Functions

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)
 

Protected Types

enum  KeyType { StringKey, AsciiKey, IntKey, PtrKey }
 

Protected Member Functions

 QGDict (uint len, KeyType kt, bool cs, bool ck)
 
 QGDict (const 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)
 

Friends

class QGDictIterator
 

Additional Inherited Members

- Public Types inherited from QCollection
typedef void * Item
 
- Protected Attributes inherited from QCollection
bool del_item
 

Detailed Description

The QGDict class is an internal class for implementing QDict template classes.

QGDict is a strictly internal class that acts as a base class for the collection classes QDict and QIntDict.

QGDict has some virtual functions that can be reimplemented to customize the subclasses.

Normally, you do not have to reimplement any of these functions.

Member Function Documentation

§ clear()

void QGDict::clear ( )
protectedvirtual

§ count()

uint QGDict::count ( ) const
inlinevirtual

§ read()

QDataStream & QGDict::read ( QDataStream s,
QCollection::Item &  item 
)
protectedvirtual

Reads a collection/dictionary item from the stream s and returns a reference to the stream.

The default implementation sets item to 0.

See also
write()

§ write()

QDataStream & QGDict::write ( QDataStream s,
QCollection::Item   
) const
protectedvirtual

Writes a collection/dictionary item to the stream s and returns a reference to the stream.

See also
read()

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