IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 24, 2006, 11:24:08 AM (20 years ago)
Author:
Paul Price
Message:

Changing spec for psVectorAlloc, adding psVectorAllocEmpty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/psLibSDRS.tex

    r9692 r9725  
    1 %%% $Id: psLibSDRS.tex,v 1.435 2006-10-21 01:35:07 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.436 2006-10-24 21:24:08 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    36843684\begin{prototype}
    36853685psVector *psVectorAlloc(long nalloc, psElemType type);
     3686psVector *psVectorAllocEmpty(long nalloc, psElemType type);
    36863687psVector *psVectorRealloc(psVector *vector, long nalloc);
    36873688psVector *psVectorRecycle(psVector *vector, long nalloc, psElemType type);
     
    36903691In these functions, \code{nalloc} is the number of elements to
    36913692allocate.  For \code{psVectorAlloc}, the value of \code{psVector.n} is
    3692 initially set to zero.  Users may choose to restrict the data range
    3693 after the \code{psVectorAlloc} function is called.  For
    3694 \code{psVectorRealloc}, if the value of \code{nalloc} is smaller than
    3695 the current value of \code{psVector.n}, then \code{psVector.n} is set
    3696 to \code{nalloc}, the array is adjusted down to match \code{nalloc},
    3697 and the extra elements are lost.  If \code{nalloc} is larger than the
    3698 current value of \code{psVector.n}, \code{psVector.n} is left intact.
    3699 If the value of \code{vector} is \code{NULL}, then
    3700 \code{psVectorRealloc} must generate an error.
     3693initially set to the number of allocated values; for
     3694\code{psVectorAllocEmpty}, the value of \code{psVector.n} is initially
     3695set to zero.  For \code{psVectorRealloc}, if the value of
     3696\code{nalloc} is smaller than the current value of \code{psVector.n},
     3697then \code{psVector.n} is set to \code{nalloc}, the array is adjusted
     3698down to match \code{nalloc}, and the extra elements are lost.  If
     3699\code{nalloc} is larger than the current value of \code{psVector.n},
     3700\code{psVector.n} is left intact.  If the value of \code{vector} is
     3701\code{NULL}, then \code{psVectorRealloc} must generate an error.
    37013702
    37023703\code{psVectorRecycle} shall recycle the input \code{vector}, such
Note: See TracChangeset for help on using the changeset viewer.