IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 16, 2004, 10:00:21 AM (22 years ago)
Author:
desonia
Message:

Added some psfits and pslist changes. More work needs to be done to make it match the current SDRS.

File:
1 edited

Legend:

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

    r2204 r2375  
    1010 *  @ingroup LinkedList
    1111 *
    12  *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-10-27 00:57:31 $
     12 *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-11-16 20:00:20 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5252 *  directly; rather the psListAlloc should be used.
    5353 *
    54  *  @see psListAlloc, psListFree
     54 *  @see psListAlloc
    5555 */
    5656typedef struct
    5757{
    58     psU32 size;                 ///< number of elements on list
     58    psU32 size;                        ///< number of elements on list
    5959    psListElem* head;                  ///< first element on list (may be NULL)
    6060    psListElem* tail;                  ///< last element on list (may be NULL)
    61     psListElem* iter;                  ///< iteration cursor
    62     psU32 iterIndex;            ///< the numeric position of the iteration cursor in the list
     61    psArray* iterators;                ///< iterators
    6362    pthread_mutex_t lock;              ///< mutex to lock a node during changes
     63psListElem* p_iter;                ///< internal cursor for increased performance index accessing
     64int p_iterIndex;                   ///< index position of the iter.
    6465}
    6566psList;
     67
     68/** The psList iterator structure.  This should be allocated via
     69 *  psListIteratorAlloc and not directly.
     70 *
     71 *  The life span of a psListIterator object is ended by either a psFree
     72 *  of this structure OR psFree of the psList in which it operates on.
     73 *
     74 *  @see psListIteratorAlloc, psListIteratorSet, psListGetNext, psListGetPrevious
     75 */
     76typedef struct
     77{
     78psList* list;                      ///< List iterator to works on
     79psU32 number;                      ///< List iterator number
     80psListElem* cursor;                ///< current cursor position
     81bool offEnd;                       ///< Iterator off the end?
     82}
     83psListIterator;
     84
    6685
    6786/** Creates a psList linked list object.
Note: See TracChangeset for help on using the changeset viewer.