IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4076


Ignore:
Timestamp:
Jun 1, 2005, 11:34:13 AM (21 years ago)
Author:
jhoblitt
Message:

change psList to store it's number of elements as an unsigned long int
change psListIterator to store the number of elements on the list as an unsigned long int
change psListIterator to store it's index as an long int
change psHash to store it's number of elements as an unsigned long int

Location:
trunk/doc/pslib
Files:
2 edited

Legend:

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

    r4075 r4076  
    1 %%% $Id: ChangeLogSDRS.tex,v 1.115 2005-06-01 21:26:34 jhoblitt Exp $
     1%%% $Id: ChangeLogSDRS.tex,v 1.116 2005-06-01 21:34:13 jhoblitt Exp $
    22
    33\subsection{Changes from version 00 to version 01}
     
    655655  \item change \code{psVector} to store it's number of elements as an \code{unsigned long int}
    656656  \item change \code{psArray} to store it's number of elements as an \code{unsigned long int}
     657  \item change \code{psList} to store it's number of elements as an \code{unsigned long int}
     658  \item change \code{psListIterator} to store the number of elements on the list as an \code{unsigned long int}
     659  \item change \code{psListIterator} to store it's index as an \code{long int}
     660  \item change \code{psHash} to store it's number of elements as an \code{unsigned long int}
    657661  \item remove \code{lock} from \code{psList}
    658662\end{itemize}
  • trunk/doc/pslib/psLibSDRS.tex

    r4074 r4076  
    1 %%% $Id: psLibSDRS.tex,v 1.250 2005-06-01 21:24:21 jhoblitt Exp $
     1%%% $Id: psLibSDRS.tex,v 1.251 2005-06-01 21:34:13 jhoblitt Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    16301630\begin{datatype}
    16311631typedef struct {
    1632    unsigned int n;                     ///< number of elements on list
     1632   unsigned long int n;                ///< number of elements on list
    16331633   psListElem *head;                   ///< first element on list (may be NULL)
    16341634   psListElem *tail;                   ///< last element on list (may be NULL)
     
    16851685    psListElem *cursor;                ///< The current iterator cursor
    16861686    bool offEnd;                       ///< Is the iterator off the end?
    1687     int index;                         ///< Index of iterator, to assist performance
     1687    long int index;                    ///< Index of iterator, to assist performance
    16881688    bool mutable;                      ///< Is it permissible to modify the list?
    16891689} psListIterator;
     
    17031703The corresponding constructor shall be:
    17041704\begin{prototype}
    1705 psListIterator *psListIteratorAlloc(const psList *list, int location, bool mutable);
     1705psListIterator *psListIteratorAlloc(const psList *list, long int location, bool mutable);
    17061706\end{prototype}
    17071707Here, \code{list} is the \code{psList} on which the iterator will
     
    17311731
    17321732\begin{prototype}
    1733 bool psListAdd(psList *list, int location, psPtr data);
     1733bool psListAdd(psList *list, long int location, psPtr data);
    17341734bool psListAddAfter(psListIterator *iterator, psPtr data);
    17351735bool psListAddBefore(psListIterator *iterator, psPtr data);
     
    17491749
    17501750\begin{prototype}
    1751 psPtr psListGet(psList *list, int location);
     1751psPtr psListGet(psList *list, long int location);
    17521752psPtr psListGetAndIncrement(psListIterator *iterator);
    17531753psPtr psListGetAndDecrement(psListIterator *iterator);
     
    17791779
    17801780\begin{prototype}
    1781 bool psListRemove(psList *list, int location)
     1781bool psListRemove(psList *list, long int location)
    17821782bool psListRemoveData(psList *list, psPtr data);
    17831783\end{prototype}
     
    18401840\begin{datatype}
    18411841typedef struct {
    1842     int n;                              ///< number of buckets
     1842    unsigned long int n;                ///< number of buckets
    18431843    psHashBucket **buckets;             ///< the buckets themselves
    18441844} psHash;
     
    18621862A hash table is created with the following function:
    18631863\begin{prototype}
    1864 psHash *psHashAlloc(psU32 nalloc);
     1864psHash *psHashAlloc(unsigned long int nalloc);
    18651865\end{prototype}
    18661866which allocates the space for the hash table, creating and
Note: See TracChangeset for help on using the changeset viewer.