Changeset 2375 for trunk/psLib/src/collections/psList.h
- Timestamp:
- Nov 16, 2004, 10:00:21 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psList.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psList.h
r2204 r2375 10 10 * @ingroup LinkedList 11 11 * 12 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-1 0-27 00:57:31$12 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-11-16 20:00:20 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 52 52 * directly; rather the psListAlloc should be used. 53 53 * 54 * @see psListAlloc , psListFree54 * @see psListAlloc 55 55 */ 56 56 typedef struct 57 57 { 58 psU32 size; ///< number of elements on list58 psU32 size; ///< number of elements on list 59 59 psListElem* head; ///< first element on list (may be NULL) 60 60 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 63 62 pthread_mutex_t lock; ///< mutex to lock a node during changes 63 psListElem* p_iter; ///< internal cursor for increased performance index accessing 64 int p_iterIndex; ///< index position of the iter. 64 65 } 65 66 psList; 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 */ 76 typedef struct 77 { 78 psList* list; ///< List iterator to works on 79 psU32 number; ///< List iterator number 80 psListElem* cursor; ///< current cursor position 81 bool offEnd; ///< Iterator off the end? 82 } 83 psListIterator; 84 66 85 67 86 /** Creates a psList linked list object.
Note:
See TracChangeset
for help on using the changeset viewer.
