Changeset 831 for trunk/psLib/src/collections/psVector.h
- Timestamp:
- Jun 2, 2004, 1:29:39 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psVector.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psVector.h
r811 r831 1 1 /** @file psVector.h 2 2 * 3 * @brief Contains support for basic vector types3 * @brief Contains basic vector definitions and operations 4 4 * 5 * This file defines types and functions for one dimensional vectors which include: 6 * char 7 * short 8 * int 9 * long 10 * unsigned char 11 * unsigned short 12 * unsigned int 13 * unsigned long 14 * float 15 * double 16 * complex float 17 * void ** 5 * This file defines the basic type for a vector struct and functions useful 6 * in manupulating vectors. 18 7 * 8 * @author Robert DeSonia, MHPCC 19 9 * @author Ross Harman, MHPCC 20 10 * 21 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $22 * @date $Date: 2004-0 5-29 01:08:46$11 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-06-02 23:29:14 $ 23 13 * 24 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 42 32 43 33 union { 44 int8_t *i8; ///< Pointers to char integer data. 45 int16_t *i16; ///< Pointers to short integer data. 46 int32_t *i32; ///< Pointers to integer data. 47 int64_t *i64; ///< Pointers to long integer data. 48 uint8_t *ui8; ///< Pointers to unsigned char integer data. 49 uint16_t*ui16; ///< Pointers to unsigned short integer data. 50 uint32_t *ui32; ///< Pointers to unsigned integer data. 51 uint64_t *ui64; ///< Pointers to unsigned long integer data. 52 float *f; ///< Pointers to floating point data. 53 double *d; ///< Pointers to double precision data. 54 complex float *cf; ///< Pointers to complex floating point data. 55 void *v; ///< Pointers to generic void data 56 void **vp; ///< Void pointer vector. 57 }vec; ///< Union for data types. 34 psU8 *U8; ///< Unsigned 8-bit integer data. 35 psU16 *U16; ///< Unsigned 16-bit integer data. 36 psU32 *U32; ///< Unsigned 32-bit integer data. 37 psU64 *U64; ///< Unsigned 64-bit integer data. 38 psS8 *S8; ///< Signed 8-bit integer data. 39 psS16 *S16; ///< Signed 16-bit integer data. 40 psS32 *S32; ///< Signed 32-bit integer data. 41 psS64 *S64; ///< Signed 64-bit integer data. 42 psF32 *F32; ///< Single-precision float data. 43 psF64 *F64; ///< Double-precision float data. 44 psC32 *C32; ///< Single-precision complex data. 45 psC64 *C64; ///< Double-precision complex data. 46 psPTR *PTR; ///< Void pointers 47 psPTR V; ///< Pointer to data 48 } data; ///< Union for data types. 58 49 } 59 50 psVector; … … 71 62 */ 72 63 psVector *psVectorAlloc( 73 psElemType dataType, ///< Type of data to be held by vector.74 unsigned int nalloc ///< Total number of elements to make available.64 unsigned int nalloc, ///< Total number of elements to make available. 65 psElemType dataType ///< Type of data to be held by vector. 75 66 ); 76 67 … … 84 75 */ 85 76 psVector *psVectorRealloc( 86 psVector *restrict psVec, ///< Vector to reallocate.87 unsigned int nalloc ///< Total number of elements to make available.77 unsigned int nalloc, ///< Total number of elements to make available. 78 psVector *restrict psVec ///< Vector to reallocate. 88 79 ); 89 80
Note:
See TracChangeset
for help on using the changeset viewer.
