Main Page   Modules   Class Hierarchy   Compound List   Compound Members  

GAUGE3D::GArray Class Template Reference

A garbage-collected array class. More...

#include <gauge3d/array.h>

List of all members.

Public Methods

 GArray ()
 Create a null array.

 GArray (GSmartPointer< tType >array,int size)
 Create an array from a pointer.

 GArray (int size)
 Allocate a new array with the given size.

tType& operator[] (int index)const
 Random access to the array.

int Size ()const
 Get the number of elements in the array.

GSmartPointer<tType> Data ()
 Get a smart pointer to the array.

const GSmartPointer<tType> Data ()const
 Get a smart pointer to the array.

 operator GSmartPointer ()
 Cast to smart pointer.

 operator const GSmartPointer ()const
 Cast to smart pointer.

GArray& operator= (const GArray &other)
 Set the GArray to point to a different data set.

bool operator== (const GArray &other)const
 Check if two arrays point at the same data.

 operator void * ()const
 Use to test if array is NULL.


Detailed Description

template<class tType> class GAUGE3D::GArray

A garbage-collected array class.

GArray is basically the same as GSmartPointer except that it points to an array.


The documentation for this class was generated from the following file:
Generated at Tue Jan 30 17:07:33 2001 for gauge3d by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000