GizmoBase

gzArray< T > Class Template Reference

Template class for arrays. More...

#include <gzTemplates.h>

List of all members.

Public Member Functions

 gzArray (gzULong size=0)
virtual ~gzArray ()
 gzArray (const gzArray &copy)
gzULong getSize () const
gzVoid setSize (gzULong size)
T & operator[] (gzULong index)
const T & get (gzULong index) const
const T & operator+= (const T &value)
gzArrayoperator+= (const gzArray &copy)
gzArray operator+ (const gzArray &add)
gzArrayoperator= (const gzArray &copy)
gzBool operator== (const gzArray &compare) const
gzBool operator!= (const gzArray &compare) const
T * getAddress ()
gzVoid resize (gzULong newSize)
gzBool contains (const T &item) const
gzVoid swapArrayData (gzArray &swapper)
 Utility to swap the contents of two instanses by exchanging data poiners.
gzVoid setArrayData (const T *data, gzULong length)
 Utility to set size and data at once.
template<>
gzArray< gzVec2 > & operator= (const gzArray &copy)
template<>
gzArray< gzVec3 > & operator= (const gzArray &copy)
template<>
gzArray< gzVec4 > & operator= (const gzArray &copy)
template<>
gzBool operator== (const gzArray &compare) const
template<>
gzBool operator== (const gzArray &compare) const
template<>
gzBool operator== (const gzArray &compare) const
template<>
gzArray< gzULong > & operator= (const gzArray &copy)
template<>
gzArray< gzFloat > & operator= (const gzArray &copy)
template<>
gzArray< gzDouble > & operator= (const gzArray &copy)

Friends

class gzDynamicArray< T >


Detailed Description

template<class T>
class gzArray< T >

Template class for arrays.

The gzArray is a template class that contains an array with fast access to retreive and store items in the array.

Definition at line 1475 of file gzTemplates.h.


Constructor & Destructor Documentation

template<class T>
gzArray< T >::gzArray gzULong  size = 0  )  [inline]
 

Definition at line 1573 of file gzTemplates.h.

References NULL.

template<class T>
gzArray< T >::~gzArray  )  [inline, virtual]
 

Definition at line 1585 of file gzTemplates.h.

template<class T>
gzArray< T >::gzArray const gzArray< T > &  copy  )  [inline]
 

Definition at line 1829 of file gzTemplates.h.

References gzArray< T >::m_data, gzArray< T >::m_size, and NULL.


Member Function Documentation

template<class T>
gzBool gzArray< T >::contains const T &  item  )  const [inline]
 

Definition at line 1593 of file gzTemplates.h.

References FALSE, and TRUE.

template<class T>
const T & gzArray< T >::get gzULong  index  )  const [inline]
 

Definition at line 1870 of file gzTemplates.h.

References throwFatalTemplateError().

Referenced by getDataSize(), pushBackAdapter(), and writeAdapter().

template<class T>
T * gzArray< T >::getAddress  )  [inline]
 

Definition at line 1566 of file gzTemplates.h.

Referenced by gzDynamicTypeCustom< T >::gzDynamicTypeCustom(), gzDynamicTypeCustom< T >::operator=(), readAdapter(), gzDynamicArray< gzULong >::transferToArray(), gzDynamicArray< gzUByte >::transferToArray(), and gzDynamicArray< T >::transferToArray().

template<class T>
gzULong gzArray< T >::getSize  )  const [inline]
 

Definition at line 1880 of file gzTemplates.h.

Referenced by getDataSize(), gzSerializeDynamicArray< T >::getDataSize(), gzSerializeArray< T >::getDataSize(), gzDynamicArray< T >::gzDynamicArray(), gzDynamicTypeCustom< T >::gzDynamicTypeCustom(), gzDynamicTypeCustom< T >::operator T(), gzDynamicTypeCustom< T >::operator=(), pushBackAdapter(), readAdapter(), and writeAdapter().

template<class T>
gzBool gzArray< T >::operator!= const gzArray< T > &  compare  )  const [inline]
 

Definition at line 1651 of file gzTemplates.h.

References gzArray< T >::operator==().

template<class T>
gzArray< T > gzArray< T >::operator+ const gzArray< T > &  add  )  [inline]
 

Definition at line 1946 of file gzTemplates.h.

References gzArray< T >::m_data, and gzArray< T >::m_size.

template<class T>
gzArray< T > & gzArray< T >::operator+= const gzArray< T > &  copy  )  [inline]
 

Definition at line 1963 of file gzTemplates.h.

References gzArray< T >::m_size.

template<class T>
const T & gzArray< T >::operator+= const T &  value  )  [inline]
 

Definition at line 1658 of file gzTemplates.h.

template<>
gzArray< gzDouble > & gzArray< gzDouble >::operator= const gzArray< T > &  copy  )  [inline]
 

Definition at line 1800 of file gzTemplates.h.

References gzArray< T >::m_data, gzArray< T >::m_size, and NULL.

template<>
gzArray< gzFloat > & gzArray< gzFloat >::operator= const gzArray< T > &  copy  )  [inline]
 

Definition at line 1773 of file gzTemplates.h.

References gzArray< T >::m_data, gzArray< T >::m_size, and NULL.

template<>
gzArray< gzULong > & gzArray< gzULong >::operator= const gzArray< T > &  copy  )  [inline]
 

Definition at line 1745 of file gzTemplates.h.

References gzArray< T >::m_data, gzArray< T >::m_size, and NULL.

template<>
gzArray< gzVec4 > & gzArray< gzVec4 >::operator= const gzArray< T > &  copy  )  [inline]
 

Definition at line 768 of file gzMatrix.h.

References gzArray< T >::m_data, gzArray< T >::m_size, and NULL.

template<>
gzArray< gzVec3 > & gzArray< gzVec3 >::operator= const gzArray< T > &  copy  )  [inline]
 

Definition at line 733 of file gzMatrix.h.

References gzArray< T >::m_data, gzArray< T >::m_size, and NULL.

template<>
gzArray< gzVec2 > & gzArray< gzVec2 >::operator= const gzArray< T > &  copy  )  [inline]
 

Definition at line 697 of file gzMatrix.h.

References gzArray< T >::m_data, gzArray< T >::m_size, and NULL.

template<class T>
gzArray< T > & gzArray< T >::operator= const gzArray< T > &  copy  )  [inline]
 

Definition at line 1681 of file gzTemplates.h.

References gzArray< T >::m_data, gzArray< T >::m_size, and NULL.

template<>
gzBool gzArray< gzULong >::operator== const gzArray< T > &  compare  )  const [inline]
 

Definition at line 1642 of file gzTemplates.h.

References FALSE, gzArray< T >::m_data, and gzArray< T >::m_size.

template<>
gzBool gzArray< gzDouble >::operator== const gzArray< T > &  compare  )  const [inline]
 

Definition at line 1634 of file gzTemplates.h.

References FALSE, gzArray< T >::m_data, and gzArray< T >::m_size.

template<>
gzBool gzArray< gzFloat >::operator== const gzArray< T > &  compare  )  const [inline]
 

Definition at line 1626 of file gzTemplates.h.

References FALSE, gzArray< T >::m_data, and gzArray< T >::m_size.

template<class T>
gzBool gzArray< T >::operator== const gzArray< T > &  compare  )  const [inline]
 

Definition at line 1604 of file gzTemplates.h.

References FALSE, gzArray< T >::m_data, gzArray< T >::m_size, and TRUE.

Referenced by gzArray< T >::operator!=().

template<class T>
T & gzArray< T >::operator[] gzULong  index  )  [inline]
 

Definition at line 1860 of file gzTemplates.h.

References throwFatalTemplateError().

template<class T>
gzVoid gzArray< T >::resize gzULong  newSize  )  [inline]
 

Definition at line 1912 of file gzTemplates.h.

References NULL.

template<class T>
gzVoid gzArray< T >::setArrayData const T *  data,
gzULong  length
[inline]
 

Utility to set size and data at once.

Definition at line 1539 of file gzTemplates.h.

References gzArray< T >::setSize().

template<class T>
gzVoid gzArray< T >::setSize gzULong  size  )  [inline]
 

Definition at line 1887 of file gzTemplates.h.

References NULL.

Referenced by gzDynamicTypeCustom< T >::gzDynamicTypeCustom(), gzDynamicTypeCustom< T >::operator=(), readAdapter(), gzArray< gzUByte >::setArrayData(), gzArray< T >::setArrayData(), gzDynamicArray< gzULong >::transferToArray(), gzDynamicArray< gzUByte >::transferToArray(), gzDynamicArray< T >::transferToArray(), and gzHostAddress::~gzHostAddress().

template<class T>
gzVoid gzArray< T >::swapArrayData gzArray< T > &  swapper  ) 
 

Utility to swap the contents of two instanses by exchanging data poiners.


Friends And Related Function Documentation

template<class T>
friend class gzDynamicArray< T > [friend]
 

Definition at line 1517 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