IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 9, 2004, 1:34:58 PM (22 years ago)
Author:
desonia
Message:

cleanup of some indent-induced madness.

File:
1 edited

Legend:

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

    r1426 r1440  
    1010 *  @ingroup LinkedList
    1111 *
    12  *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-08-09 22:44:25 $
     12 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-08-09 23:34:57 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4444typedef struct psListElem
    4545{
    46     struct psListElem *prev;    ///< previous link in list
    47     struct psListElem *next;    ///< next link in list
     46    struct psListElem* prev;    ///< previous link in list
     47    struct psListElem* next;    ///< next link in list
    4848    void *data;                 ///< real data item
    4949}
     
    5858{
    5959    unsigned int size;          ///< number of elements on list
    60     psListElem *head;           ///< first element on list (may be NULL)
    61     psListElem *tail;           ///< last element on list (may be NULL)
    62     psListElem *iter;           ///< iteration cursor
     60    psListElem* head;           ///< first element on list (may be NULL)
     61    psListElem* tail;           ///< last element on list (may be NULL)
     62    psListElem* iter;           ///< iteration cursor
    6363    unsigned int iterIndex;     ///< the numeric position of the iteration cursor in the list
    6464    pthread_mutex_t lock;       ///< mutex to lock a node during changes
     
    6868/** Creates a psList linked list object.
    6969 *
    70  *  @return psList*     A new psList object.
     70 *  @return psList* A new psList object.
    7171 */
    72 psList *psListAlloc(void *data
     72psList* psListAlloc(void *data
    7373                    ///< initial data item; may be NULL if no an empty psList is desired
    7474                   )
     
    7777/** Adds an element to a psList at position given.
    7878 *
    79  *  @return psList*     The psList with added data item.  If list parameter is
     79 *  @return psList* The psList with added data item.  If list parameter is
    8080 *                      NULL, the return value will also be NULL.
    8181 */
    82 bool psListAdd(psList * restrict list,  ///< list to add to (if NULL, nothing is done)
     82bool psListAdd(psList* restrict list,  ///< list to add to (if NULL, nothing is done)
    8383               void *data,      ///< data item to add.  If NULL, list is not modified.
    8484               int where        ///< index, PS_LIST_HEAD, PS_LIST_TAIL, or numbered location.
     
    8989 *  @return bool        TRUE if element is successfully removed, otherwise FALSE.
    9090 */
    91 bool psListRemove(psList * restrict list,
     91bool psListRemove(psList* restrict list,
    9292                  ///< list to remove element from
    9393                  void *data,
     
    104104 *                      NULL is returned.
    105105 */
    106 void *psListGet(psList * restrict list, ///< list to retrieve element from
     106void *psListGet(psList* restrict list, ///< list to retrieve element from
    107107                int which       ///< index number, or PS_LIST_NEXT, PS_LIST_PREV, PS_LIST_UNKNOWN
    108108               );
     
    112112 *
    113113 */
    114 void psListSetIterator(psList * restrict list,  ///< list to retrieve element from
     114void psListSetIterator(psList* restrict list,  ///< list to retrieve element from
    115115                       int where        ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL
    116116                      );
     
    123123 *                      parameter was NULL.
    124124 */
    125 void *psListGetNext(psList * restrict list      ///< list to retrieve element from
     125void *psListGetNext(psList* restrict list      ///< list to retrieve element from
    126126                   );
    127127
     
    133133 *                      iterator is not valid or list parameter was NULL.
    134134 */
    135 void *psListGetCurrent(psList * restrict list   ///< list to retrieve element from
     135void *psListGetCurrent(psList* restrict list   ///< list to retrieve element from
    136136                      );
    137137
     
    143143 *                      parameter was NULL.
    144144 */
    145 void *psListGetPrevious(psList * restrict list  ///< list to retrieve element from
     145void *psListGetPrevious(psList* restrict list  ///< list to retrieve element from
    146146                       );
    147147
    148148/** Convert a linked list to an array
    149149 *
    150  *  @return psArray*   A new psArray populated with elements from the list,
     150 *  @return psArray* A new psArray populated with elements from the list,
    151151 *                      or NULL if the given dlist parameter is NULL.
    152152 */
    153 psArray *psListToArray(psList * dlist   ///< List to convert
     153psArray* psListToArray(psList* dlist   ///< List to convert
    154154                      );
    155155
    156156/** Convert array to a doubly-linked list
    157157 *
    158  *  @return psList*     A new psList populated with elements formt the psArray,
     158 *  @return psList* A new psList populated with elements formt the psArray,
    159159 *                      or NULL is the given arr parameter is NULL.
    160160 */
    161 psList *psArrayToList(psArray * arr     ///< vector to convert
     161psList* psArrayToList(psArray* arr     ///< vector to convert
    162162                     );
    163163
    164 psList *psListSort(psList * list, psComparePtrFcn compare);
     164psList* psListSort(psList* list, psComparePtrFcn compare);
    165165
    166166/// @} End of DataGroup Functions
Note: See TracChangeset for help on using the changeset viewer.