Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

QAsciiDict< type > Class Template Reference

#include </home/clem/local/src/opie/qmake/include/qasciidict.h>

Inheritance diagram for QAsciiDict< type >:

Inheritance graph
[legend]
Collaboration diagram for QAsciiDict< type >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QAsciiDict (int size=17, bool caseSensitive=TRUE, bool copyKeys=TRUE)
 QAsciiDict (const QAsciiDict< type > &d)
 ~QAsciiDict ()
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)
typetake (const char *k)
typefind (const char *k) const
typeoperator[] (const char *k) const
void clear ()
void resize (uint n)
void statistics () const
template<>
void deleteItem (QPtrCollection::Item)

Private Member Functions

void deleteItem (Item d)

template<class type>
class QAsciiDict< type >


Constructor & Destructor Documentation

template<class type>
QAsciiDict< type >::QAsciiDict int  size = 17,
bool  caseSensitive = TRUE,
bool  copyKeys = TRUE
[inline]
 

Definition at line 54 of file qasciidict.h.

template<class type>
QAsciiDict< type >::QAsciiDict const QAsciiDict< type > &  d  )  [inline]
 

Definition at line 56 of file qasciidict.h.

template<class type>
QAsciiDict< type >::~QAsciiDict  )  [inline]
 

Definition at line 57 of file qasciidict.h.


Member Function Documentation

template<class type>
void QAsciiDict< type >::clear  )  [inline, virtual]
 

Removes all items from the dictionary.

Reimplemented from QGDict.

Definition at line 75 of file qasciidict.h.

Referenced by QAsciiDict< int >::~QAsciiDict(), and QSettings::~QSettings().

template<class type>
uint QAsciiDict< type >::count  )  const [inline, virtual]
 

Returns the number of items in the dictionary.

Reimplemented from QGDict.

Definition at line 60 of file qasciidict.h.

template<>
void QAsciiDict< void >::deleteItem QPtrCollection::Item   )  [inline]
 

Definition at line 90 of file qasciidict.h.

template<class type>
void QAsciiDict< type >::deleteItem Item  d  )  [inline, private]
 

Definition at line 95 of file qasciidict.h.

References QPtrCollection::del_item, and type.

template<class type>
type* QAsciiDict< type >::find const char *  k  )  const [inline]
 

Definition at line 70 of file qasciidict.h.

Referenced by firstObsoleteWarning(), and QSettings::readEntry().

template<class type>
void QAsciiDict< type >::insert const char *  k,
const type d
[inline]
 

Definition at line 64 of file qasciidict.h.

Referenced by OBackendFactory< T >::Default(), Opie::OBackendFactory< T >::defaultDB(), OTodoAccessBackendSQL::fillDict(), firstObsoleteWarning(), OTodoAccessXML::load(), Opie::OPimTodoAccessXML::load(), OContactAccessBackend_XML::load(), Opie::OPimContactAccessBackend_XML::load(), DateBookDB::loadFile(), ODateBookAccessBackend_XML::loadFile(), and Opie::ODateBookAccessBackend_XML::loadFile().

template<class type>
bool QAsciiDict< type >::isEmpty  )  const [inline]
 

Definition at line 62 of file qasciidict.h.

Referenced by QSettings::entryList().

template<class type>
QAsciiDict<type>& QAsciiDict< type >::operator= const QAsciiDict< type > &  d  )  [inline]
 

Definition at line 58 of file qasciidict.h.

template<class type>
type* QAsciiDict< type >::operator[] const char *  k  )  const [inline]
 

Definition at line 72 of file qasciidict.h.

template<class type>
bool QAsciiDict< type >::remove const char *  k  )  [inline]
 

Definition at line 68 of file qasciidict.h.

Referenced by QSettings::removeEntry().

template<class type>
void QAsciiDict< type >::replace const char *  k,
const type d
[inline]
 

Definition at line 66 of file qasciidict.h.

Referenced by QSettings::writeEntry().

template<class type>
void QAsciiDict< type >::resize uint  n  )  [inline]
 

Changes the size of the hashtable to newsize. The contents of the dictionary are preserved, but all iterators on the dictionary become invalid.

Reimplemented from QGDict.

Definition at line 76 of file qasciidict.h.

template<class type>
uint QAsciiDict< type >::size  )  const [inline]
 

Returns the size of the hash array.

Reimplemented from QGDict.

Definition at line 61 of file qasciidict.h.

template<class type>
void QAsciiDict< type >::statistics  )  const [inline]
 

Outputs debug statistics.

Reimplemented from QGDict.

Definition at line 77 of file qasciidict.h.

template<class type>
type* QAsciiDict< type >::take const char *  k  )  [inline]
 

Definition at line 69 of file qasciidict.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:45:55 2005 for OPIE by  doxygen 1.4.2