IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 28, 2004, 3:08:46 PM (22 years ago)
Author:
desonia
Message:

added psVectorRecycle function, which tries to recycle a vector (same concept as psImageRecycle).

File:
1 edited

Legend:

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

    r672 r811  
    1919 *  @author Ross Harman, MHPCC
    2020 *
    21  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    22  *  @date $Date: 2004-05-13 23:36:27 $
     21 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     22 *  @date $Date: 2004-05-29 01:08:46 $
    2323 *
    2424 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8888);
    8989
     90/** Recycle a vector.
     91 *
     92 * Uses psLib memory allocation functions to reallocate a vector collection of data. The vector is reallocated
     93 * according to the psElemType type parameter.
     94 *
     95 * @return psVector*: Pointer to psVector.
     96 *
     97 */
     98psVector *psVectorRecycle(
     99    psVector *restrict psVec,
     100    ///< Vector to recycle.  If NULL, a new vector is created.  No effort taken to preserve the values.
     101
     102    unsigned int nalloc,                ///< Total number of elements to make available.
     103    psElemType type                     ///< the datatype of the returned vector
     104);
     105
    90106/** Deallocate a vector.
    91107 *
Note: See TracChangeset for help on using the changeset viewer.