IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 18, 2004, 9:37:58 PM (22 years ago)
Author:
eugene
Message:

code cleanup for Doxygen support & readability

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psDlist.h

    r247 r257  
    3131};
    3232
    33 /*****************************************************************************/
     33/** Functions **************************************************************/
     34/** \addtogroup DataGroup General Data Container Utilities 
     35 *  \{
     36 */
     37
    3438/** Constructor */
    35 psDlist *psDlistAlloc(void *data        //!< initial data item; may be NULL
    36     );
     39psDlist *psDlistAlloc(void *data)       //!< initial data item; may be NULL
     40;
    3741
    3842/** Destructor */
    3943void psDlistFree(psDlist *list,         //!< list to destroy
    40                 void (*elemFree)(void *) //!< destructor for data on list
    41     );
     44                void (*elemFree)(void *)) //!< destructor for data on list
     45;
    4246
    43 /*
    44  * List maintainence functions
    45  */
     47/**** List maintainence functions ****/
    4648
    4749/** Add to list */
    4850psDlist *psDlistAdd(psDlist *list,      //!< list to add to (may be NULL)
    4951                    void *data,         //!< data item to add
    50                     int where           //!< index, PS_DLIST_HEAD, or PS_DLIST_TAIL
    51     );
     52                    int where)          //!< index, PS_DLIST_HEAD, or PS_DLIST_TAIL
     53;
    5254
    5355/** Append to a list */
    5456psDlist *psDlistAppend(psDlist *list,   //!< list to append to (may be NULL)
    55                        void *data       //!< data item to add
    56     );
     57                       void *data)      //!< data item to add
     58;
    5759
    5860/** Remove from a list */
    5961void *psDlistRemove(psDlist *list,      //!< list to remove element from
    6062                    void *data,         //!< data item to remove
    61                     int which           //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or
    62                                         //!< PS_DLIST_PREV
    63     );
     63                    int which)          //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or
     64;                                       //!< PS_DLIST_PREV
    6465
    6566/** Retrieve from a list */
    6667void *psDlistGet(const psDlist *list,   //!< list to retrieve element from
    67                  int which              //!< index of item, or PS_DLIST_NEXT, or PS_DLIST_PREV
    68     );
     68                 int which)             //!< index of item, or PS_DLIST_NEXT, or PS_DLIST_PREV
     69;
    6970
    70 /*
    71  * convenience functions to use psDlistGet as an iterator
    72  */
     71/**** convenience functions to use psDlistGet as an iterator ******/
    7372
    7473/** Set the iterator */
    7574void psDlistSetIterator(psDlist *list,  //!< list to retrieve element from
    7675                        int where,      //!< index, PS_DLIST_HEAD, or PS_DLIST_TAIL
    77                         int which       //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or
    78                                         //!< PS_DLIST_PREV
    79     );
     76                        int which)      //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or
     77;                                       //!< PS_DLIST_PREV
    8078
    8179/** Get next element */
    8280void *psDlistGetNext(psDlist *list,     //!< list to retrieve element from
    83                      int which          //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or
    84                                         //!< PS_DLIST_PREV
    85     );
     81                     int which)         //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or
     82;                                       //!< PS_DLIST_PREV
    8683
    8784/** Get previous element */
    8885void *psDlistGetPrev(psDlist *list,     //!< list to retrieve element from
    89                      int which          //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or
    90                                         //!< PS_DLIST_PREV
    91     );
    92 
     86                     int which)         //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or
     87;                                       //!< PS_DLIST_PREV
    9388
    9489/** Convert doubly-linked list to an array */
    95 psVoidPtrArray *psDlistToArray(psDlist *dlist //!< List to convert
    96     );
     90psVoidPtrArray *psDlistToArray(psDlist *dlist) //!< List to convert
     91;
    9792
    9893/** Convert array to a doubly-linked list */
    99 psDlist *psArrayToDlist(psVoidPtrArray *arr //!< Array to convert
    100     );
     94psDlist *psArrayToDlist(psVoidPtrArray *arr) //!< Array to convert
     95;
    10196
     97/* \} */ // End of DataGroup Functions
    10298
    10399#endif
Note: See TracChangeset for help on using the changeset viewer.