IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4316 for trunk/psLib/src/types


Ignore:
Timestamp:
Jun 17, 2005, 5:13:02 PM (21 years ago)
Author:
drobbin
Message:

* empty log message *

Location:
trunk/psLib/src/types
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psList.c

    r4312 r4316  
    66 *  @author Robert Daniel DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-06-18 00:53:32 $
     8 *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-06-18 03:13:01 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    149149}
    150150
    151 psListIterator* psListIteratorAlloc(psList* list, int location, bool mutable)
     151psListIterator* psListIteratorAlloc(psList* list, long location, bool mutable)
    152152{
    153153    psListIterator* iter = psAlloc(sizeof(psListIterator));
     
    181181}
    182182
    183 psBool psListIteratorSet(psListIterator* iterator,
    184                          int location)
     183bool psListIteratorSet(psListIterator* iterator,
     184                       int location)
    185185{
    186186    if (iterator == NULL) {
     
    247247}
    248248
    249 psBool psListAdd(psList* list, psS32 location, psPtr data)
     249bool psListAdd(psList* list, long location, psPtr data)
    250250{
    251251
     
    433433}
    434434
    435 psBool psListRemove(psList* list,
    436                     psS32 location)
     435bool psListRemove(psList* list,
     436                  long location)
    437437{
    438438    if (list == NULL) {
     
    451451}
    452452
    453 psBool psListRemoveData(psList* list,
    454                         psPtr data)
     453bool psListRemoveData(psList* list,
     454                      psPtr data)
    455455{
    456456    if (list == NULL) {
     
    485485}
    486486
    487 psPtr psListGet(psList* list, psS32 location)
     487psPtr psListGet(psList* list, long location)
    488488{
    489489    if (list == NULL) {
     
    564564 * Convert a psList to/from a psVoidPtrArray
    565565 */
    566 psArray* psListToArray(psList* restrict list)
     566psArray* psListToArray(const psList* restrict list)
    567567{
    568568    psListElem* ptr;
  • trunk/psLib/src/types/psList.h

    r4312 r4316  
    77 *  @ingroup LinkedList
    88 *
    9  *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-18 00:53:32 $
     9 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-06-18 03:13:02 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    9999psListIterator* psListIteratorAlloc(
    100100    psList* list,                      ///< the psList to iterate with
    101     int location,                      ///< the initial starting point.
     101    long location,                      ///< the initial starting point.
    102102    ///<  This can be a numeric index, PS_LIST_HEAD, or PS_LIST_TAIL.
    103103    bool mutable                       ///< Is it permissible to modify list?
     
    109109 *  @return psBool        TRUE if iterator successfully set, otherwise FALSE.
    110110 */
    111 psBool psListIteratorSet(
     111bool psListIteratorSet(
    112112    psListIterator* iterator,            ///< list iterator
    113113    int location                         ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL
     
    118118 *  @return psBool        TRUE if item was successfully added, otherwise FALSE.
    119119 */
    120 psBool psListAdd(
     120bool psListAdd(
    121121    psList* list,                      ///< list to add item to
    122     psS32 location,                    ///< index, PS_LIST_HEAD, PS_LIST_TAIL, or numbered location.
     122    long location,                    ///< index, PS_LIST_HEAD, PS_LIST_TAIL, or numbered location.
    123123    psPtr data                         ///< data item to add.  If NULL, list is not modified.
    124124);
     
    128128 *  @return psBool        TRUE if item was successfully added, otherwise FALSE.
    129129 */
    130 psBool psListAddAfter(
    131     psListIterator* list,              ///< list position to add item to
     130bool psListAddAfter(
     131    psListIterator* iterator,          ///< list position to add item to
    132132    psPtr data                         ///< data item to add.  If NULL, list is not modified.
    133133);
     
    137137 *  @return psBool        TRUE if item was successfully added, otherwise FALSE.
    138138 */
    139 psBool psListAddBefore(
    140     psListIterator* list,              ///< list position to add item to
     139bool psListAddBefore(
     140    psListIterator* iterator,              ///< list position to add item to
    141141    psPtr data                         ///< data item to add.  If NULL, list is not modified.
    142142);
     
    146146 *  @return psBool        TRUE if element is successfully removed, otherwise FALSE.
    147147 */
    148 psBool psListRemove(
     148bool psListRemove(
    149149    psList* list,                      ///< list to remove element from
    150     psS32 location                     ///< index of item
     150    long location                     ///< index of item
    151151);
    152152
     
    155155 *  @return psBool        TRUE if element is successfully removed, otherwise FALSE.
    156156 */
    157 psBool psListRemoveData(
     157bool psListRemoveData(
    158158    psList* list,                      ///< list to remove element from
    159159    psPtr data                         ///< data item to find and remove
     
    169169psPtr psListGet(
    170170    psList* list,                      ///< list to retrieve element from
    171     psS32 location                     ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL
     171    long location                     ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL
    172172);
    173173
     
    196196 */
    197197psArray* psListToArray(
    198     psList* dlist                      ///< List to convert
     198    const psList* list                      ///< List to convert
    199199);
    200200
Note: See TracChangeset for help on using the changeset viewer.