IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 8, 2004, 4:23:27 PM (22 years ago)
Author:
desonia
Message:

changed order of psListAdd/psListRemove to match current SDRS.

File:
1 edited

Legend:

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

    r1474 r1747  
    1010 *  @ingroup LinkedList
    1111 *
    12  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-08-11 20:04:51 $
     12 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-09-09 02:23:27 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8383bool psListAdd(
    8484    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.
    8787);
    8888
    89 /** Remove an item from a list.  If which parameter is PS_LIST_UNKNOWN,
     89/** Remove an item from a list.  If location parameter is PS_LIST_UNKNOWN,
    9090 *
    9191 *  @return bool        TRUE if element is successfully removed, otherwise FALSE.
     
    9494    psList* restrict list,
    9595    ///< 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,
    9997    ///< 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.
    100100);
    101101
    102102/** Retrieve an item from a list.
    103103 *
    104  *  @return void*       the item corresponding to the which parameter.  If
    105  *                      which is invalid (e.g., a numbered index greater
     104 *  @return void*       the item corresponding to the location parameter.  If
     105 *                      location is invalid (e.g., a numbered index greater
    106106 *                      than the list size or if the list is empty), a
    107107 *                      NULL is returned.
     
    109109void *psListGet(
    110110    psList* restrict list,             ///< list to retrieve element from
    111     int which                          ///< index number, or PS_LIST_NEXT, PS_LIST_PREV, PS_LIST_UNKNOWN
     111    int location                       ///< index number, or PS_LIST_NEXT, PS_LIST_PREV, PS_LIST_UNKNOWN
    112112);
    113113
    114 /** Set the iterator of the list to a given position.  If where is invalid the
     114/** Set the iterator of the list to a given position.  If location is invalid the
    115115 *  iterator position is not changed.
    116116 *
     
    118118void psListSetIterator(
    119119    psList* restrict list,             ///< list to retrieve element from
    120     int where                          ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL
     120    int location                       ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL
    121121);
    122122
Note: See TracChangeset for help on using the changeset viewer.