GizmoBase

gzDict< T1, T2 > Class Template Reference

#include <gzTemplates.h>

Inheritance diagram for gzDict< T1, T2 >:

gzRefDict< T1, T2 > gzRefDict< gzInstanceCompareInterface, gzReference > gzRefDict< gzString, gzFuncInfo > gzRefDict< gzString, gzRefData< gzString > > gzRefDict< gzString, gzRuleInfo > gzRefInstanceDictionary List of all members.

Public Member Functions

 gzDict (gzULong size=10, gzBool useAutoResize=FALSE)
 gzDict (const gzDict< T1, T2 > &copy)
const gzDict< T1, T2 > & operator= (const gzDict< T1, T2 > &copy)
virtual ~gzDict ()
gzVoid clear ()
gzVoid clearAndDestroy ()
gzVoid enter (const T1 &, T2 *)
T2 * find (const T1 &, T2 *parent=NULL) const
gzBool exist (const T1 &, T2 *data=NULL) const
T2 * remove (const T1 &, T2 *data=NULL)
virtual gzVoid onInsert (const T1 &, T2 *) const
virtual gzVoid onRemove (const T1 &, T2 *) const
virtual gzDictEntry< T1, T2 > * cloneEntry (gzDictEntry< T1, T2 > *item) const
gzULong entries () const
gzVoid setSize (gzULong size)
gzULong getSize () const
gzVoid resize (gzULong size)
gzVoid cleanLinks ()
 Provide the ability to do a garbage collect of used item links.
gzVoid reuseLinks (gzBool on=FALSE)
gzVoid useAutoResize (gzBool on=FALSE)

Protected Member Functions

gzDictEntry< T1, T2 > * allocEntry (const T1 &key, T2 *pek, gzULong hash) const
gzVoid disposeEntry (gzDictEntry< T1, T2 > *entry) const
gzVoid cleanEntries ()

Friends

class gzDictConstIterator< T1, T2 >
class gzDictIterator< T1, T2 >
class gzDictList< T1, T2 >
class gzDictArray< T1, T2 >

Detailed Description

template<class T1, class T2>
class gzDict< T1, T2 >

Definition at line 2769 of file gzTemplates.h.


Constructor & Destructor Documentation

template<class T1, class T2>
gzDict< T1, T2 >::gzDict gzULong  size = 10,
gzBool  useAutoResize = FALSE
[inline]
 

Definition at line 2958 of file gzTemplates.h.

References FALSE, and NULL.

template<class T1, class T2>
gzDict< T1, T2 >::gzDict const gzDict< T1, T2 > &  copy  )  [inline]
 

Definition at line 2914 of file gzTemplates.h.

References FALSE.

template<class T1, class T2>
gzDict< T1, T2 >::~gzDict  )  [inline, virtual]
 

Definition at line 3213 of file gzTemplates.h.

References gzDict< T1, T2 >::cleanEntries(), and gzDict< T1, T2 >::clear().


Member Function Documentation

template<class T1, class T2>
gzDictEntry< T1, T2 > * gzDict< T1, T2 >::allocEntry const T1 &  key,
T2 *  pek,
gzULong  hash
const [inline, protected]
 

Definition at line 2871 of file gzTemplates.h.

References gzList< T >::entries(), and gzList< T >::removeFirst().

Referenced by gzDict< T1, T2 >::cloneEntry(), gzRefDict< gzString, gzFuncInfo >::cloneEntry(), and gzDict< T1, T2 >::enter().

template<class T1, class T2>
gzVoid gzDict< T1, T2 >::cleanEntries  )  [inline, protected]
 

Definition at line 2888 of file gzTemplates.h.

References gzList< T >::clearAndDestroy(), and gzList< T >::entries().

Referenced by gzDict< T1, T2 >::~gzDict().

template<class T1, class T2>
gzVoid gzDict< T1, T2 >::cleanLinks  )  [inline]
 

Provide the ability to do a garbage collect of used item links.

Definition at line 3122 of file gzTemplates.h.

References gzList< gzDictEntry< T1, T2 > >::cleanLinks().

template<class T1, class T2>
gzVoid gzDict< T1, T2 >::clear  )  [inline]
 

Reimplemented in gzRefDict< T1, T2 >, gzRefDict< gzString, gzFeature >, gzRefDict< gzInstanceCompareInterface, gzReference >, gzRefDict< gzString, gzSerializeURLManagerInterface >, gzRefDict< gzValueCompareInterface, gzObject >, gzRefDict< gzString, gzRefData< gzDynamicType > >, gzRefDict< gzValueCompareInterface, _localData< T > >, gzRefDict< gzString, gzImage >, gzRefDict< gzULongLongCompareInterface, gzDynamicMethodChainData >, gzRefDict< gzString, gzModule >, gzRefDict< gzString, gzRuleInfo >, gzRefDict< gzValueCompareInterface, gzMessageDatabaseLevel >, gzRefDict< gzString, gzCacheData >, gzRefDict< gzString, gzMessageDatabaseSender >, gzRefDict< gzType, gzObjectInvokeInterface >, gzRefDict< gzString, gzRefData< gzString > >, gzRefDict< gzString, gzImageManager >, and gzRefDict< gzString, gzFuncInfo >.

Definition at line 3100 of file gzTemplates.h.

References gzDictList< T1, T2 >::clean(), and NULL.

Referenced by gzRefDict< gzString, gzFuncInfo >::clear(), gzDict< T1, T2 >::setSize(), and gzDict< T1, T2 >::~gzDict().

template<class T1, class T2>
gzVoid gzDict< T1, T2 >::clearAndDestroy  )  [inline]
 

Definition at line 3346 of file gzTemplates.h.

References gzDictIterator< T1, T2 >::remove().

template<class T1, class T2>
gzDictEntry< T1, T2 > * gzDict< T1, T2 >::cloneEntry gzDictEntry< T1, T2 > *  item  )  const [inline, virtual]
 

Reimplemented in gzRefDict< T1, T2 >.

Definition at line 2896 of file gzTemplates.h.

References gzDict< T1, T2 >::allocEntry(), gzDictEntry< T1, T2 >::getData(), gzDictEntry< T1, T2 >::getHash(), and gzDictEntry< T1, T2 >::getKey().

template<class T1, class T2>
gzVoid gzDict< T1, T2 >::disposeEntry gzDictEntry< T1, T2 > *  entry  )  const [inline, protected]
 

Definition at line 2880 of file gzTemplates.h.

References gzList< T >::pre_insert().

template<class T1, class T2>
gzVoid gzDict< T1, T2 >::enter const T1 &  ,
T2 * 
[inline]
 

Definition at line 3139 of file gzTemplates.h.

References gzDict< T1, T2 >::allocEntry(), and NULL.

Referenced by gzThreadData< T >::operator T &(), gzThreadData< T >::operator[](), gzParserFunction< gzDynamicTypeArgumentParser, gzBasicParser >::registerCompressedRule(), gzDynamicMethodChain< T, Base >::registerDirectMethod(), gzParserFunction< gzDynamicTypeArgumentParser, gzBasicParser >::registerFunction(), and gzDynamicMethodChain< T, Base >::registerMethod().

template<class T1, class T2>
gzULong gzDict< T1, T2 >::entries  )  const [inline]
 

Definition at line 2799 of file gzTemplates.h.

template<class T1, class T2>
gzBool gzDict< T1, T2 >::exist const T1 &  ,
T2 *  data = NULL
const [inline]
 

Definition at line 2993 of file gzTemplates.h.

References FALSE, gzDictEntry< T1, T2 >::m_hash, gzDictEntry< T1, T2 >::m_key, gzDictEntry< T1, T2 >::m_pek, NULL, and TRUE.

template<class T1, class T2>
T2 * gzDict< T1, T2 >::find const T1 &  ,
T2 *  parent = NULL
const [inline]
 

Definition at line 3164 of file gzTemplates.h.

References gzDictEntry< T1, T2 >::m_hash, gzDictEntry< T1, T2 >::m_key, gzDictEntry< T1, T2 >::m_pek, and NULL.

Referenced by gzParserFunction< gzDynamicTypeArgumentParser, gzBasicParser >::getRule(), gzDynamicMethodChain< T, Base >::invokeMethod(), gzThreadData< T >::operator T &(), gzThreadData< T >::operator[](), gzParserFunction< T, BaseParser >::parseCompressedRule(), gzDynamicMethodChain< T, Base >::registerDescription(), gzDynamicMethodChain< T, Base >::registerDirectMethod(), gzDynamicMethodChain< T, Base >::registerMethod(), and gzDynamicMethodChain< T, Base >::setArgCheck().

template<class T1, class T2>
gzULong gzDict< T1, T2 >::getSize  )  const [inline]
 

Definition at line 2970 of file gzTemplates.h.

template<class T1, class T2>
virtual gzVoid gzDict< T1, T2 >::onInsert const T1 &  ,
T2 * 
const [inline, virtual]
 

Reimplemented in gzRefDict< T1, T2 >.

Definition at line 2793 of file gzTemplates.h.

template<class T1, class T2>
virtual gzVoid gzDict< T1, T2 >::onRemove const T1 &  ,
T2 * 
const [inline, virtual]
 

Reimplemented in gzRefDict< T1, T2 >.

Definition at line 2795 of file gzTemplates.h.

template<class T1, class T2>
const gzDict< T1, T2 > & gzDict< T1, T2 >::operator= const gzDict< T1, T2 > &  copy  )  [inline]
 

Definition at line 2901 of file gzTemplates.h.

References gzDict< T1, T2 >::m_array, gzDict< T1, T2 >::m_entries, gzDict< T1, T2 >::m_size, and NULL.

Referenced by gzRefDict< gzString, gzFuncInfo >::gzRefDict().

template<class T1, class T2>
T2 * gzDict< T1, T2 >::remove const T1 &  ,
T2 *  data = NULL
[inline]
 

Definition at line 3052 of file gzTemplates.h.

References gzDictEntry< T1, T2 >::getData(), gzDictEntry< T1, T2 >::m_hash, gzDictEntry< T1, T2 >::m_key, gzDictEntry< T1, T2 >::m_pek, NULL, and gzListIterator< T >::remove().

Referenced by gzParserFunction< gzDynamicTypeArgumentParser, gzBasicParser >::registerCompressedRule(), gzParserFunction< gzDynamicTypeArgumentParser, gzBasicParser >::registerFunction(), and gzDynamicMethodChain< T, Base >::unRegisterMethod().

template<class T1, class T2>
gzVoid gzDict< T1, T2 >::resize gzULong  size  )  [inline]
 

Definition at line 2984 of file gzTemplates.h.

References NULL.

template<class T1, class T2>
gzVoid gzDict< T1, T2 >::reuseLinks gzBool  on = FALSE  )  [inline]
 

Definition at line 2846 of file gzTemplates.h.

References gzList< T >::reuseLinks(), and gzList< gzDictEntry< T1, T2 > >::reuseLinks().

template<class T1, class T2>
gzVoid gzDict< T1, T2 >::setSize gzULong  size  )  [inline]
 

Definition at line 2975 of file gzTemplates.h.

References gzDict< T1, T2 >::clear(), and NULL.

template<class T1, class T2>
gzVoid gzDict< T1, T2 >::useAutoResize gzBool  on = FALSE  )  [inline]
 

Definition at line 2866 of file gzTemplates.h.


Friends And Related Function Documentation

template<class T1, class T2>
friend class gzDictArray< T1, T2 > [friend]
 

Definition at line 2825 of file gzTemplates.h.

template<class T1, class T2>
friend class gzDictConstIterator< T1, T2 > [friend]
 

Definition at line 2822 of file gzTemplates.h.

template<class T1, class T2>
friend class gzDictIterator< T1, T2 > [friend]
 

Definition at line 2823 of file gzTemplates.h.

template<class T1, class T2>
friend class gzDictList< T1, T2 > [friend]
 

Definition at line 2824 of file gzTemplates.h.


The documentation for this class was generated from the following file:
Documentation for GizmoBase generated at Wed Feb 20 11:57:57 2008 by   Saab Training Systems AB, ¸ (c) 2003-and beyond