Changeset 4409 for trunk/psLib/src/collections/psVector.h
- Timestamp:
- Jun 28, 2005, 10:17:52 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psVector.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psVector.h
r4330 r4409 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 6$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06-2 1 03:01:37$13 * @version $Revision: 1.37 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-28 20:17:52 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 29 29 ///< Union of psVector data types. 30 30 typedef union { 31 psU8* U8; ///< Unsigned 8-bit integer data. 32 psU16* U16; ///< Unsigned 16-bit integer data. 33 psU32* U32; ///< Unsigned 32-bit integer data. 34 psU64* U64; ///< Unsigned 64-bit integer data. 35 psS8* S8; ///< Signed 8-bit integer data. 36 psS16* S16; ///< Signed 16-bit integer data. 37 psS32* S32; ///< Signed 32-bit integer data. 38 psS64* S64; ///< Signed 64-bit integer data. 39 psF32* F32; ///< Single-precision float data. 40 psF64* F64; ///< Double-precision float data. 41 psC32* C32; ///< Single-precision complex data. 42 psC64* C64; ///< Double-precision complex data. 43 } p_psVectorData; 31 psU8* U8; ///< Unsigned 8-bit integer data. 32 psU16* U16; ///< Unsigned 16-bit integer data. 33 psU32* U32; ///< Unsigned 32-bit integer data. 34 psU64* U64; ///< Unsigned 64-bit integer data. 35 psS8* S8; ///< Signed 8-bit integer data. 36 psS16* S16; ///< Signed 16-bit integer data. 37 psS32* S32; ///< Signed 32-bit integer data. 38 psS64* S64; ///< Signed 64-bit integer data. 39 psF32* F32; ///< Single-precision float data. 40 psF64* F64; ///< Double-precision float data. 41 psC32* C32; ///< Single-precision complex data. 42 psC64* C64; ///< Double-precision complex data. 43 } 44 p_psVectorData; 44 45 45 46 /** An vector to support primitive types. … … 50 51 typedef struct 51 52 { 52 psType type; ///< Type of data.53 int n; ///< Number of elements in use.54 const int nalloc; ///< Total number of elements available.55 p_psVectorData data; ///< Union for data types.53 psType type; ///< Type of data. 54 int n; ///< Number of elements in use. 55 const int nalloc; ///< Total number of elements available. 56 p_psVectorData data; ///< Union for data types. 56 57 } 57 58 psVector; … … 72 73 */ 73 74 psVector* psVectorAlloc( 74 psU32 nalloc,///< Total number of elements to make available.75 psElemType dataType///< Type of data to be held by vector.75 unsigned long nalloc, ///< Total number of elements to make available. 76 psElemType type ///< Type of data to be held by vector. 76 77 ); 77 78 … … 86 87 */ 87 88 psVector* psVectorRealloc( 88 psVector* psVec,///< Vector to reallocate.89 psU32 nalloc///< Total number of elements to make available.89 psVector* vector, ///< Vector to reallocate. 90 unsigned long nalloc ///< Total number of elements to make available. 90 91 ); 91 92 … … 115 116 */ 116 117 psVector* psVectorRecycle( 117 psVector* psVec,118 psVector* vector, 118 119 ///< Vector to recycle. If NULL, a new vector is created. No effort 119 120 ///< taken to preserve the values. 120 121 121 psU32 nalloc,///< Total number of elements to make available.122 unsigned long nalloc, ///< Total number of elements to make available. 122 123 psElemType type ///< the datatype of the returned vector 123 124 );
Note:
See TracChangeset
for help on using the changeset viewer.
