IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2700


Ignore:
Timestamp:
Dec 10, 2004, 4:30:23 PM (22 years ago)
Author:
Paul Price
Message:

Altered psList and psListIterator to match that in bug 249.

Location:
trunk/doc/pslib
Files:
2 edited

Legend:

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

    r2593 r2700  
    1 %%% $Id: ChangeLogSDRS.tex,v 1.49 2004-12-02 02:49:35 price Exp $
     1%%% $Id: ChangeLogSDRS.tex,v 1.50 2004-12-11 02:30:17 price Exp $
    22
    33\subsection{Changes from version 00 to version 01}
     
    394394\begin{itemize}
    395395\item Changed names of \code{psSphereTransform} structure members to conform with ADD.
    396 \end{itemize}
     396\item Altered \code{psList} and \code{psListIterator} to match that in bug 249.
     397\end{itemize}
  • trunk/doc/pslib/psLibSDRS.tex

    r2593 r2700  
    1 %%% $Id: psLibSDRS.tex,v 1.157 2004-12-02 02:49:43 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.158 2004-12-11 02:30:23 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    15001500   psListElem *head;                   ///< first element on list (may be NULL)
    15011501   psListElem *tail;                   ///< last element on list (may be NULL)
    1502    unsigned int nIter;                 ///< number of iterators
    1503    psArray *iter;                      ///< array of psListIterator: iteration cursors
     1502   psArray *iterators;                 ///< array of psListIterator: iteration cursors
    15041503   pthread_mutex_t lock;               ///< mutex to lock a node during changes
    15051504} psList;
     
    15081507The type \code{psList} represents the container of the list.  It has a
    15091508pointer to the first element in the linked list (\code{head}), a
    1510 pointer to the last element in the list (\code{tail}), an entry for
    1511 the current cursor location (\code{iter}), and an entry to define the
    1512 number of elements in the list (\code{size}).  Iteration on the list
    1513 is achieved by means of an array of \code{nIter} iteration cursors,
    1514 \code{iter}.  The \code{lock} should be applied during changes to the
    1515 list to maintain thread safety.
     1509pointer to the last element in the list (\code{tail}), an array of
     1510iteration cursors, (\code{iterators}), and an entry to define the
     1511number of elements in the list (\code{size}).  The \code{lock} should
     1512be applied during changes to the list to maintain thread safety.
    15161513
    15171514The elements of the list are defined by the type \code{psListElem}:
     
    15561553typedef struct {
    15571554    psList *list;                      ///< List iterator works on
    1558     unsigned int num;                  ///< Iterator number
    15591555    psListElem *cursor;                ///< The current iterator cursor
    15601556    bool offEnd;                       ///< Is the iterator off the end?
     1557    int index;                         ///< Index of iterator, to assist performance
    15611558} psListIterator;
    15621559\end{verbatim}
    15631560The \code{psListIterator} keeps track of which list element the
    1564 iterator \code{cursor} is currently pointing at.  \code{num} is the
    1565 number of the list iterator in the parent \code{list}'s array of
    1566 iterators, so \code{list->iter[num]} points to the list iterator.  The
    1567 boolean member, \code{offEnd}, indicates whether the iterator has
    1568 progressed off the end of the list (i.e., beyond the last item).
     1561iterator \code{cursor} is currently pointing at.  \code{index} is the
     1562index of the list iterator, which is used to assist performance when
     1563using numerical locations.  The boolean member, \code{offEnd},
     1564indicates whether the iterator has progressed off the end of the list
     1565(i.e., beyond the last item).
    15691566
    15701567The corresponding constructor shall be:
Note: See TracChangeset for help on using the changeset viewer.