GizmoBase

gzDataSort< T, SORTVAL > Class Template Reference

#include <gzTemplates.h>

List of all members.

Public Member Functions

 gzDataSort (const gzULong entries=100, const gzULong chunkSize=100)
 gzDataSort (const gzDataSort< T, SORTVAL > &right)
 ~gzDataSort ()
gzVoid insert (const T &item, const SORTVAL &sortval, gzBool multipleInstances=TRUE)
gzVoid remove (const T &item, const SORTVAL &sortval)
gzVoid clear ()
gzULong getSize () const
gzVoid setChunkSize (gzULong size)
gzVoid setRealSize (gzULong size)
gzULong getRemoved () const
gzVoid reorder ()
gzVoid operator= (const gzDataSort< T, SORTVAL > &copy)
T & operator[] (gzULong index)

Friends

class gzDataSortIterator< T, SORTVAL >

Classes

struct  AddItem
struct  Item


Detailed Description

template<class T, class SORTVAL = gzDouble>
class gzDataSort< T, SORTVAL >

Definition at line 5880 of file gzTemplates.h.


Constructor & Destructor Documentation

template<class T, class SORTVAL>
gzDataSort< T, SORTVAL >::gzDataSort const gzULong  entries = 100,
const gzULong  chunkSize = 100
[inline]
 

Definition at line 6013 of file gzTemplates.h.

References gzMax(), NULL, gzDynamicArray< T >::setRealSize(), and gzDynamicArray< T >::setSize().

template<class T, class SORTVAL>
gzDataSort< T, SORTVAL >::gzDataSort const gzDataSort< T, SORTVAL > &  right  )  [inline]
 

Definition at line 5961 of file gzTemplates.h.

References gzDataSort< T, SORTVAL >::insert(), NULL, gzDynamicArray< T >::setSize(), gzDataSortIterator< T, SORTVAL >::sortval(), and TRUE.

template<class T, class SORTVAL>
gzDataSort< T, SORTVAL >::~gzDataSort  )  [inline]
 

Definition at line 6026 of file gzTemplates.h.


Member Function Documentation

template<class T, class SORTVAL>
gzVoid gzDataSort< T, SORTVAL >::clear  )  [inline]
 

Definition at line 5998 of file gzTemplates.h.

References gzDynamicArray< T >::setSize().

Referenced by gzDataSort< T, SORTVAL >::operator=(), and gzDataSort< T, SORTVAL >::setRealSize().

template<class T, class SORTVAL>
gzULong gzDataSort< T, SORTVAL >::getRemoved  )  const [inline]
 

Definition at line 6006 of file gzTemplates.h.

template<class T, class SORTVAL>
gzULong gzDataSort< T, SORTVAL >::getSize  )  const [inline]
 

Definition at line 5993 of file gzTemplates.h.

References gzDynamicArray< T >::getSize().

Referenced by gzDataSort< T, SORTVAL >::operator[]().

template<class T, class SORTVAL>
gzVoid gzDataSort< T, SORTVAL >::insert const T &  item,
const SORTVAL &  sortval,
gzBool  multipleInstances = TRUE
[inline]
 

Definition at line 6034 of file gzTemplates.h.

References FALSE, gzDynamicArray< T >::getAddress(), gzDynamicArray< T >::getSize(), gzDynamicArray< T >::setSize(), and TRUE.

Referenced by gzDataSort< T, SORTVAL >::gzDataSort(), and gzDataSort< T, SORTVAL >::operator=().

template<class T, class SORTVAL>
gzVoid gzDataSort< T, SORTVAL >::operator= const gzDataSort< T, SORTVAL > &  copy  )  [inline]
 

Definition at line 6871 of file gzTemplates.h.

References gzDataSort< T, SORTVAL >::clear(), gzDataSort< T, SORTVAL >::insert(), gzDataSortIterator< T, SORTVAL >::sortval(), and TRUE.

Referenced by gzDataSort< T, SORTVAL >::reorder().

template<class T, class SORTVAL>
T & gzDataSort< T, SORTVAL >::operator[] gzULong  index  )  [inline]
 

Definition at line 6883 of file gzTemplates.h.

References gzDataSort< T, SORTVAL >::getSize(), gzDataSortIterator< T, SORTVAL >::key(), and throwFatalTemplateError().

template<class T, class SORTVAL>
gzVoid gzDataSort< T, SORTVAL >::remove const T &  item,
const SORTVAL &  sortval
[inline]
 

Definition at line 6192 of file gzTemplates.h.

References gzDynamicArray< T >::getAddress(), gzDynamicArray< T >::getSize(), and TRUE.

template<class T, class SORTVAL>
gzVoid gzDataSort< T, SORTVAL >::reorder  )  [inline]
 

Definition at line 6859 of file gzTemplates.h.

References gzDataSort< T, SORTVAL >::operator=().

template<class T, class SORTVAL>
gzVoid gzDataSort< T, SORTVAL >::setChunkSize gzULong  size  )  [inline]
 

Definition at line 5979 of file gzTemplates.h.

References gzDynamicArray< T >::setChunkSize().

template<class T, class SORTVAL>
gzVoid gzDataSort< T, SORTVAL >::setRealSize gzULong  size  )  [inline]
 

Definition at line 5985 of file gzTemplates.h.

References gzDataSort< T, SORTVAL >::clear(), and gzDynamicArray< T >::setRealSize().


Friends And Related Function Documentation

template<class T, class SORTVAL = gzDouble>
friend class gzDataSortIterator< T, SORTVAL > [friend]
 

Definition at line 5914 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:56 2008 by   Saab Training Systems AB, ¸ (c) 2003-and beyond