Changeset 2700
- Timestamp:
- Dec 10, 2004, 4:30:23 PM (22 years ago)
- Location:
- trunk/doc/pslib
- Files:
-
- 2 edited
-
ChangeLogSDRS.tex (modified) (2 diffs)
-
psLibSDRS.tex (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/ChangeLogSDRS.tex
r2593 r2700 1 %%% $Id: ChangeLogSDRS.tex,v 1. 49 2004-12-02 02:49:35price Exp $1 %%% $Id: ChangeLogSDRS.tex,v 1.50 2004-12-11 02:30:17 price Exp $ 2 2 3 3 \subsection{Changes from version 00 to version 01} … … 394 394 \begin{itemize} 395 395 \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.15 7 2004-12-02 02:49:43 price Exp $1 %%% $Id: psLibSDRS.tex,v 1.158 2004-12-11 02:30:23 price Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 1500 1500 psListElem *head; ///< first element on list (may be NULL) 1501 1501 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 1504 1503 pthread_mutex_t lock; ///< mutex to lock a node during changes 1505 1504 } psList; … … 1508 1507 The type \code{psList} represents the container of the list. It has a 1509 1508 pointer 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. 1509 pointer to the last element in the list (\code{tail}), an array of 1510 iteration cursors, (\code{iterators}), and an entry to define the 1511 number of elements in the list (\code{size}). The \code{lock} should 1512 be applied during changes to the list to maintain thread safety. 1516 1513 1517 1514 The elements of the list are defined by the type \code{psListElem}: … … 1556 1553 typedef struct { 1557 1554 psList *list; ///< List iterator works on 1558 unsigned int num; ///< Iterator number1559 1555 psListElem *cursor; ///< The current iterator cursor 1560 1556 bool offEnd; ///< Is the iterator off the end? 1557 int index; ///< Index of iterator, to assist performance 1561 1558 } psListIterator; 1562 1559 \end{verbatim} 1563 1560 The \code{psListIterator} keeps track of which list element the 1564 iterator \code{cursor} is currently pointing at. \code{ num} is the1565 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).1561 iterator \code{cursor} is currently pointing at. \code{index} is the 1562 index of the list iterator, which is used to assist performance when 1563 using numerical locations. The boolean member, \code{offEnd}, 1564 indicates whether the iterator has progressed off the end of the list 1565 (i.e., beyond the last item). 1569 1566 1570 1567 The corresponding constructor shall be:
Note:
See TracChangeset
for help on using the changeset viewer.
