IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 2, 2004, 1:29:39 PM (22 years ago)
Author:
harman
Message:

Changed psVector to be consistent with psImage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psVector.h

    r811 r831  
    11/** @file  psVector.h
    22 *
    3  *  @brief Contains support for basic vector types
     3 *  @brief Contains basic vector definitions and operations
    44 *
    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.
    187 *
     8 *  @author Robert DeSonia, MHPCC
    199 *  @author Ross Harman, MHPCC
    2010 *
    21  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    22  *  @date $Date: 2004-05-29 01:08:46 $
     11 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-06-02 23:29:14 $
    2313 *
    2414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4232
    4333    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.
    5849}
    5950psVector;
     
    7162 */
    7263psVector *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.
    7566);
    7667
     
    8475 */
    8576psVector *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.
    8879);
    8980
Note: See TracChangeset for help on using the changeset viewer.