KDevelop API Documentation

KDict< type > Class Template Reference

#include <kdict.h>

Inheritance diagram for KDict< type >:

Trie_Impl List of all members.

Public Types

typedef Structure::Trie_Impl<
char, QString, type * > 
Impl

Public Member Functions

 KDict (bool cs=true)
 KDict (int sz, bool cs=true)
 KDict (const KDict< type > &dict)
 ~KDict ()
unsigned int count () const
bool isEmpty () const
void insert (const QString &key, const type *item)
void replace (const QString &key, const type *item)
bool remove (const QString &key)
type * find (const QString &key)
type * operator[] (const QString &key) const
type * take (const QString &key)
void resize (uint newsize)
uint size () const
std::ostream & print (std::ostream &out) const
bool autoDelete () const
void setAutoDelete (bool enable)

Private Member Functions

void depreceated (const char *f) const

Private Attributes

bool case_sensitive
bool auto_delete

template<typename type>
class KDict< type >


Member Typedef Documentation

template<typename type>
typedef Structure::Trie_Impl<char, QString, type*> KDict< type >::Impl
 

Definition at line 25 of file kdict.h.

Referenced by KDict< type >::KDict(), and KDict< type >::Delete_Pointer::operator()().


Constructor & Destructor Documentation

template<typename type>
KDict< type >::KDict bool  cs = true  )  [inline]
 

Definition at line 27 of file kdict.h.

References KDict< type >::auto_delete, KDict< type >::case_sensitive, and KDict< type >::Impl.

template<typename type>
KDict< type >::KDict int  sz,
bool  cs = true
[inline]
 

Definition at line 31 of file kdict.h.

References KDict< type >::auto_delete, KDict< type >::case_sensitive, KDict< type >::depreceated(), and KDict< type >::Impl.

template<typename type>
KDict< type >::KDict const KDict< type > &  dict  )  [inline]
 

Definition at line 36 of file kdict.h.

References endl().

template<typename type>
KDict< type >::~KDict  )  [inline]
 

Definition at line 49 of file kdict.h.

References KDict< type >::auto_delete.


Member Function Documentation

template<typename type>
bool KDict< type >::autoDelete  )  const [inline]
 

Definition at line 107 of file kdict.h.

References KDict< type >::auto_delete.

template<typename type>
unsigned int KDict< type >::count  )  const [inline]
 

Definition at line 57 of file kdict.h.

Referenced by main().

template<typename type>
void KDict< type >::depreceated const char *  f  )  const [inline, private]
 

Definition at line 117 of file kdict.h.

References KDict< type >::depreceated(), endl(), and kdDebug().

Referenced by KDict< type >::depreceated(), KDict< type >::KDict(), and KDict< type >::resize().

template<typename type>
type* KDict< type >::find const QString key  )  [inline]
 

Definition at line 82 of file kdict.h.

References Structure::add_prefix(), and KDict< type >::find().

Referenced by KDict< type >::find(), and main().

template<typename type>
void KDict< type >::insert const QString key,
const type *  item
[inline]
 

Definition at line 64 of file kdict.h.

References Structure::add_prefix(), and KDict< type >::insert().

Referenced by KDict< type >::insert(), and main().

template<typename type>
bool KDict< type >::isEmpty  )  const [inline]
 

Definition at line 60 of file kdict.h.

References KDict< type >::size().

template<typename type>
type* KDict< type >::operator[] const QString key  )  const [inline]
 

Definition at line 88 of file kdict.h.

template<typename type>
std::ostream& KDict< type >::print std::ostream &  out  )  const [inline]
 

Definition at line 105 of file kdict.h.

References KDict< type >::print().

Referenced by KDict< type >::print().

template<typename type>
bool KDict< type >::remove const QString key  )  [inline]
 

Definition at line 76 of file kdict.h.

References Structure::add_prefix(), and KDict< type >::remove().

Referenced by KDict< type >::remove(), and KDict< type >::replace().

template<typename type>
void KDict< type >::replace const QString key,
const type *  item
[inline]
 

Definition at line 71 of file kdict.h.

References KDict< type >::remove(), and KDict< type >::replace().

Referenced by KDict< type >::replace().

template<typename type>
void KDict< type >::resize uint  newsize  )  [inline]
 

Definition at line 98 of file kdict.h.

References KDict< type >::depreceated(), and KDict< type >::resize().

Referenced by KDict< type >::resize().

template<typename type>
void KDict< type >::setAutoDelete bool  enable  )  [inline]
 

Definition at line 110 of file kdict.h.

References KDict< type >::auto_delete, and KDict< type >::setAutoDelete().

Referenced by KDict< type >::setAutoDelete().

template<typename type>
uint KDict< type >::size  )  const [inline]
 

Definition at line 102 of file kdict.h.

Referenced by KDict< type >::isEmpty().

template<typename type>
type* KDict< type >::take const QString key  )  [inline]
 

Definition at line 94 of file kdict.h.

References KDict< type >::take().

Referenced by KDict< type >::take().


Member Data Documentation

template<typename type>
bool KDict< type >::auto_delete [private]
 

Definition at line 116 of file kdict.h.

Referenced by KDict< type >::autoDelete(), KDict< type >::KDict(), KDict< type >::setAutoDelete(), and KDict< type >::~KDict().

template<typename type>
bool KDict< type >::case_sensitive [private]
 

Definition at line 115 of file kdict.h.

Referenced by KDict< type >::KDict().


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:23 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003