Changeset 1426 for trunk/psLib/src/collections/psVector.h
- Timestamp:
- Aug 9, 2004, 12:44:25 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psVector.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psVector.h
r1407 r1426 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-08-0 7 00:06:06$14 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-08-09 22:44:25 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 33 33 typedef struct 34 34 { 35 psType type; // /< Type of data.36 unsigned int nalloc; // /< Total number of elements available.37 unsigned int n; // /< Number of elements in use.35 psType type; ///< Type of data. 36 unsigned int nalloc; ///< Total number of elements available. 37 unsigned int n; ///< Number of elements in use. 38 38 39 39 union { 40 psU8 *U8; // /< Unsigned 8-bit integer data.41 psU16 *U16; // /< Unsigned 16-bit integer data.42 psU32 *U32; // /< Unsigned 32-bit integer data.43 psU64 *U64; // /< Unsigned 64-bit integer data.44 psS8 *S8; // /< Signed 8-bit integer data.45 psS16 *S16; // /< Signed 16-bit integer data.46 psS32 *S32; // /< Signed 32-bit integer data.47 psS64 *S64; // /< Signed 64-bit integer data.48 psF32 *F32; // /< Single-precision float data.49 psF64 *F64; // /< Double-precision float data.50 psC32 *C32; // /< Single-precision complex data.51 psC64 *C64; // /< Double-precision complex data.52 psPTR V; // /< Pointer to data.53 } data; // /< Union for data types.40 psU8 *U8; ///< Unsigned 8-bit integer data. 41 psU16 *U16; ///< Unsigned 16-bit integer data. 42 psU32 *U32; ///< Unsigned 32-bit integer data. 43 psU64 *U64; ///< Unsigned 64-bit integer data. 44 psS8 *S8; ///< Signed 8-bit integer data. 45 psS16 *S16; ///< Signed 16-bit integer data. 46 psS32 *S32; ///< Signed 32-bit integer data. 47 psS64 *S64; ///< Signed 64-bit integer data. 48 psF32 *F32; ///< Single-precision float data. 49 psF64 *F64; ///< Double-precision float data. 50 psC32 *C32; ///< Single-precision complex data. 51 psC64 *C64; ///< Double-precision complex data. 52 psPTR V; ///< Pointer to data. 53 } data; ///< Union for data types. 54 54 } 55 55 psVector; … … 68 68 * 69 69 */ 70 psVector *psVectorAlloc(unsigned int nalloc, // /< Total number of elements to make available.71 psElemType dataType // /< Type of data to be held by vector.70 psVector *psVectorAlloc(unsigned int nalloc, ///< Total number of elements to make available. 71 psElemType dataType ///< Type of data to be held by vector. 72 72 ); 73 73 … … 80 80 * 81 81 */ 82 psVector *psVectorRealloc(unsigned int nalloc, // /< Total number of elements to make available.83 psVector * restrict psVec // /< Vector to reallocate.82 psVector *psVectorRealloc(unsigned int nalloc, ///< Total number of elements to make available. 83 psVector * restrict psVec ///< Vector to reallocate. 84 84 ); 85 85 … … 93 93 */ 94 94 psVector *psVectorRecycle(psVector * restrict psVec, 95 // /< Vector to recycle. If NULL, a new vector is created. No effort taken to95 ///< Vector to recycle. If NULL, a new vector is created. No effort taken to 96 96 // preserve the values. 97 unsigned int nalloc, // /< Total number of elements to make available.98 psElemType type // /< the datatype of the returned vector97 unsigned int nalloc, ///< Total number of elements to make available. 98 psElemType type ///< the datatype of the returned vector 99 99 ); 100 100 … … 107 107 */ 108 108 109 psVector *psVectorSort(psVector * restrict outVector, // /< the output vector to recycle, or NULL if new109 psVector *psVectorSort(psVector * restrict outVector, ///< the output vector to recycle, or NULL if new 110 110 // vector desired. 111 const psVector * restrict inVector // /< the vector to sort.111 const psVector * restrict inVector ///< the vector to sort. 112 112 ); 113 113
Note:
See TracChangeset
for help on using the changeset viewer.
