Changeset 1747 for trunk/psLib/src/collections/psList.h
- Timestamp:
- Sep 8, 2004, 4:23:27 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psList.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psList.h
r1474 r1747 10 10 * @ingroup LinkedList 11 11 * 12 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-0 8-11 20:04:51$12 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-09-09 02:23:27 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 83 83 bool psListAdd( 84 84 psList* restrict list, ///< list to add to (if NULL, nothing is done) 85 void *data, ///< data item to add. If NULL, list is not modified.86 int where ///< index, PS_LIST_HEAD, PS_LIST_TAIL, or numbered location.85 int location, ///< index, PS_LIST_HEAD, PS_LIST_TAIL, or numbered location. 86 void *data ///< data item to add. If NULL, list is not modified. 87 87 ); 88 88 89 /** Remove an item from a list. If whichparameter is PS_LIST_UNKNOWN,89 /** Remove an item from a list. If location parameter is PS_LIST_UNKNOWN, 90 90 * 91 91 * @return bool TRUE if element is successfully removed, otherwise FALSE. … … 94 94 psList* restrict list, 95 95 ///< list to remove element from 96 void *data, 97 ///< if which is PS_LIST_UNKNOWN, data item to find and remove, otherwise this is ignored. 98 int which 96 int location, 99 97 ///< index of item, or PS_LIST_UNKNOWN, PS_LIST_NEXT, PS_LIST_PREV, or numbered location. 98 void *data 99 ///< if location is PS_LIST_UNKNOWN, data item to find and remove, otherwise this is ignored. 100 100 ); 101 101 102 102 /** Retrieve an item from a list. 103 103 * 104 * @return void* the item corresponding to the whichparameter. If105 * whichis invalid (e.g., a numbered index greater104 * @return void* the item corresponding to the location parameter. If 105 * location is invalid (e.g., a numbered index greater 106 106 * than the list size or if the list is empty), a 107 107 * NULL is returned. … … 109 109 void *psListGet( 110 110 psList* restrict list, ///< list to retrieve element from 111 int which///< index number, or PS_LIST_NEXT, PS_LIST_PREV, PS_LIST_UNKNOWN111 int location ///< index number, or PS_LIST_NEXT, PS_LIST_PREV, PS_LIST_UNKNOWN 112 112 ); 113 113 114 /** Set the iterator of the list to a given position. If whereis invalid the114 /** Set the iterator of the list to a given position. If location is invalid the 115 115 * iterator position is not changed. 116 116 * … … 118 118 void psListSetIterator( 119 119 psList* restrict list, ///< list to retrieve element from 120 int where///< index number, PS_LIST_HEAD, or PS_LIST_TAIL120 int location ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL 121 121 ); 122 122
Note:
See TracChangeset
for help on using the changeset viewer.
