[ Home | About | Tech Info & Data | Publications | References ] [ Site by Jeffrey Hall | Research funded by NSF ]
The DataList class implements methods to organize and manipulate an array of data arrays of any type.
2008 July 18 - Documentation written.
pointer list
Destructor. It first frees all the memory allocated to the arrays, and then frees the array pointer list itself. Never call this procedure directly; it is invoked by IDL's Obj_Destroy function.
Structure definition. Specifies the contents of the IDL structure instantiated by the DataList class. Used by Obj_New; do not invoke directly.
argument int i
Return array array
Returns the array at list index i. The array itself is returned, not a pointer.
argument int i
argument int j
Return array array
Returns the jth element of the ith array in the list.
Return int howMany
Returns the number of elements in the ith array in the list.
Return int howMany
Returns the data type of the ith array in the list.
Return int howMany
Returns the number of arrays in the list index i.
keyword int numArrays
Return bool TRUE
Constructor. If the keyword is not set, numArray is set to 1. Self.list is then set to point to a PtrArr of numArrays elements. Thus, a new Datalist object contains a pointer to an array of pointers. Never call this function directly; it is invoked by IDL's Obj_New function.
argument int i
argument int j
argument int val
Inserts the value val as the jth element of the ith array in the list. The length of the array is increased by one, and all elements after the jth element have their indexes increased by one.
argument int i
argument int j
Removes the jth element of the ith array in the list. The length of the array is decreased by one, and all elements after the jth element have their indexes decreased by one.
argument int i
Reinitializes the list with i arrays. The old data are lost.
argument int i
argument int a
Reinitializes the ith array in the list with array a. The old array is lost.
argument int i
argument int j
argument variant v
Sets the jth element of the ith array in the list with value v. The old array is lost.
obj = Obj_New( 'DataList' )
Obj_Destroy( obj )