ISLEman
Public Member Functions | List of all members
QAsciiDict< type > Class Template Reference
Inheritance diagram for QAsciiDict< type >:
QGDict QCollection

Public Member Functions

 QAsciiDict (int size=17, bool caseSensitive=TRUE, bool copyKeys=TRUE)
 
 QAsciiDict (const QAsciiDict< type > &d)
 
QAsciiDict< type > & operator= (const QAsciiDict< type > &d)
 
uint count () const
 
uint size () const
 
bool isEmpty () const
 
void insert (const char *k, const type *d)
 
void replace (const char *k, const type *d)
 
bool remove (const char *k)
 
type * take (const char *k)
 
type * find (const char *k) const
 
type * operator[] (const char *k) const
 
void clear ()
 
void resize (uint n)
 
void statistics () const
 
- 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 &)
 
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)
 
- Protected Attributes inherited from QCollection
bool del_item
 

Member Function Documentation

§ clear()

template<class type>
void QAsciiDict< type >::clear ( )
inlinevirtual

Removes all objects from the collection. The objects will be deleted if auto-delete has been enabled.

See also
setAutoDelete()

Implements QCollection.

§ count()

template<class type>
uint QAsciiDict< type >::count ( ) const
inlinevirtual

Returns the number of objects in the collection.

Implements QCollection.


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