#include <gauge3d/array.h>
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. | |
GArray is basically the same as GSmartPointer except that it points to an array.
1.2.4 written by Dimitri van Heesch,
© 1997-2000