Changeset 4493 for trunk/psLib/src/collections/psVector.h
- Timestamp:
- Jul 6, 2005, 4:17:54 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psVector.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psVector.h
r4409 r4493 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 6-28 20:17:52$13 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-07-07 02:17:53 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 51 51 typedef struct 52 52 { 53 ps Type type; ///< Type of data.54 int n;///< Number of elements in use.55 const int nalloc;///< Total number of elements available.53 psMathType type; ///< Type of data. 54 long n; ///< Number of elements in use. 55 const long nalloc; ///< Total number of elements available. 56 56 p_psVectorData data; ///< Union for data types. 57 void *lock; ///< Optional lock for thread safety. 57 58 } 58 59 psVector; … … 73 74 */ 74 75 psVector* psVectorAlloc( 75 unsigned long nalloc,///< Total number of elements to make available.76 long nalloc, ///< Total number of elements to make available. 76 77 psElemType type ///< Type of data to be held by vector. 77 ); 78 ) 79 ; 78 80 79 81 /** Reallocate a vector. … … 88 90 psVector* psVectorRealloc( 89 91 psVector* vector, ///< Vector to reallocate. 90 unsigned long nalloc///< Total number of elements to make available.92 long nalloc ///< Total number of elements to make available. 91 93 ); 92 94 … … 120 122 ///< taken to preserve the values. 121 123 122 unsigned long nalloc,///< Total number of elements to make available.124 long nalloc, ///< Total number of elements to make available. 123 125 psElemType type ///< the datatype of the returned vector 124 126 );
Note:
See TracChangeset
for help on using the changeset viewer.
