IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 9, 2004, 12:44:25 PM (22 years ago)
Author:
desonia
Message:

fixed some stupid indent-induced formating problems and added doxygen
comments.

Location:
trunk/psLib/src/collections
Files:
6 edited

Legend:

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

    r1407 r1426  
    1212 *  @author Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2004-08-07 00:06:06 $
     14 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2004-08-09 22:44:25 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3434typedef struct
    3535{
    36     unsigned int nalloc;        // /< Total number of elements available.
    37     unsigned int n;             // /< Number of elements in use.
    38     psPTR *data;                // /< An Array of pointer elements
     36    unsigned int nalloc;        ///< Total number of elements available.
     37    unsigned int n;             ///< Number of elements in use.
     38    psPTR *data;                ///< An Array of pointer elements
    3939}
    4040psArray;
     
    5454 *
    5555 */
    56 psArray *psArrayAlloc(unsigned int nalloc       // /< Total number of elements to make available.
     56psArray *psArrayAlloc(unsigned int nalloc       ///< Total number of elements to make available.
    5757                     );
    5858
     
    6565 *
    6666 */
    67 psArray *psArrayRealloc(unsigned int nalloc,    // /< Total number of elements to make available.
    68                         psArray * restrict psArr        // /< array to reallocate.
     67psArray *psArrayRealloc(unsigned int nalloc,    ///< Total number of elements to make available.
     68                        psArray * restrict psArr        ///< array to reallocate.
    6969                       );
    7070
     
    7676 *
    7777 */
    78 void psArrayElementFree(psArray * restrict psArr        // /< Void pointer array to destroy.
     78void psArrayElementFree(psArray * restrict psArr        ///< Void pointer array to destroy.
    7979                       );
    8080
  • trunk/psLib/src/collections/psHash.h

    r1420 r1426  
    1111 *  @author George Gusciora, MHPCC
    1212 *   
    13  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-08-09 20:29:43 $
     13 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2004-08-09 22:44:25 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2929typedef struct psHashBucket
    3030{
    31     char *key;                  // /< key for this item of data
    32     void *data;                 // /< the data itself
    33     struct psHashBucket *next;  // /< list of other possible keys
     31    char *key;                  ///< key for this item of data
     32    void *data;                 ///< the data itself
     33    struct psHashBucket *next;  ///< list of other possible keys
    3434}
    3535psHashBucket;
     
    4040typedef struct psHash
    4141{
    42     int nbucket;                // /< Number of buckets in hash table.
    43     psHashBucket **buckets;     // /< The bucket data.
     42    int nbucket;                ///< Number of buckets in hash table.
     43    psHashBucket **buckets;     ///< The bucket data.
    4444}
    4545psHash;
    4646
    4747/// Allocate hash buckets in table.
    48 psHash *psHashAlloc(int nbucket // /< The number of buckets to allocate.
     48psHash *psHashAlloc(int nbucket ///< The number of buckets to allocate.
    4949                   );
    5050
    5151/// Insert entry into table.
    52 bool psHashAdd(psHash * table,  // /< table to insert in
    53                const char *key, // /< key to use
    54                void *data       // /< data to insert
     52bool psHashAdd(psHash * table,  ///< table to insert in
     53               const char *key, ///< key to use
     54               void *data       ///< data to insert
    5555              );
    5656
    5757/// Lookup key in table.
    58 void *psHashLookup(psHash * table,      // /< table to lookup key in
    59                    const char *key      // /< key to lookup
     58void *psHashLookup(psHash * table,      ///< table to lookup key in
     59                   const char *key      ///< key to lookup
    6060                  );
    6161
    6262/// Remove key from table.
    63 bool psHashRemove(psHash * table,       // /< table to lookup key in
    64                   const char *key       // /< key to lookup
     63bool psHashRemove(psHash * table,       ///< table to lookup key in
     64                  const char *key       ///< key to lookup
    6565                 );
    6666
    6767/// List all keys in table.
    68 psList *psHashKeyList(psHash * table    // /< table to list keys from.
     68psList *psHashKeyList(psHash * table    ///< table to list keys from.
    6969                     );
    7070
  • trunk/psLib/src/collections/psList.h

    r1407 r1426  
    1010 *  @ingroup LinkedList
    1111 *
    12  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-08-07 00:06:06 $
     12 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-08-09 22:44:25 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3333 */
    3434enum {
    35     PS_LIST_HEAD = 0,           // /< at head
    36     PS_LIST_TAIL = -1,                     // /< at tail
    37     PS_LIST_PREVIOUS = -2,                 // /< previous element
    38     PS_LIST_CURRENT = -3,                  // /< current element
    39     PS_LIST_NEXT = -4,                     // /< next element
    40     PS_LIST_UNKNOWN = -5                   // /< unknown position (should be last in enum list)
     35    PS_LIST_HEAD = 0,           ///< at head
     36    PS_LIST_TAIL = -1,                     ///< at tail
     37    PS_LIST_PREVIOUS = -2,                 ///< previous element
     38    PS_LIST_CURRENT = -3,                  ///< current element
     39    PS_LIST_NEXT = -4,                     ///< next element
     40    PS_LIST_UNKNOWN = -5                   ///< unknown position (should be last in enum list)
    4141};
    4242
     
    4444typedef struct psListElem
    4545{
    46     struct psListElem *prev;    // /< previous link in list
    47     struct psListElem *next;    // /< next link in list
    48     void *data;                 // /< real data item
     46    struct psListElem *prev;    ///< previous link in list
     47    struct psListElem *next;    ///< next link in list
     48    void *data;                 ///< real data item
    4949}
    5050psListElem;
     
    5757typedef struct
    5858{
    59     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
    63     unsigned int iterIndex;     // /< the numeric position of the iteration cursor in the list
    64     pthread_mutex_t lock;       // /< mutex to lock a node during changes
     59    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
     63    unsigned int iterIndex;     ///< the numeric position of the iteration cursor in the list
     64    pthread_mutex_t lock;       ///< mutex to lock a node during changes
    6565}
    6666psList;
     
    7171 */
    7272psList *psListAlloc(void *data
    73                     // /< initial data item; may be NULL if no an empty psList is desired
     73                    ///< initial data item; may be NULL if no an empty psList is desired
    7474                   )
    7575;
     
    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)
    83                void *data,      // /< data item to add.  If NULL, list is not modified.
    84                int where        // /< index, PS_LIST_HEAD, PS_LIST_TAIL, or numbered location.
     82bool psListAdd(psList * restrict list,  ///< list to add to (if NULL, nothing is done)
     83               void *data,      ///< data item to add.  If NULL, list is not modified.
     84               int where        ///< index, PS_LIST_HEAD, PS_LIST_TAIL, or numbered location.
    8585              );
    8686
     
    9090 */
    9191bool psListRemove(psList * restrict list,
    92                   // /< list to remove element from
     92                  ///< list to remove element from
    9393                  void *data,
    94                   // /< if which is PS_LIST_UNKNOWN, data item to find and remove, otherwise this is ignored.
     94                  ///< if which is PS_LIST_UNKNOWN, data item to find and remove, otherwise this is ignored.
    9595                  int which
    96                   // /< index of item, or PS_LIST_UNKNOWN, PS_LIST_NEXT, PS_LIST_PREV, or numbered location.
     96                  ///< index of item, or PS_LIST_UNKNOWN, PS_LIST_NEXT, PS_LIST_PREV, or numbered location.
    9797                 );
    9898
     
    104104 *                      NULL is returned.
    105105 */
    106 void *psListGet(psList * restrict list, // /< list to retrieve element from
    107                 int which       // /< index number, or PS_LIST_NEXT, PS_LIST_PREV, PS_LIST_UNKNOWN
     106void *psListGet(psList * restrict list, ///< list to retrieve element from
     107                int which       ///< index number, or PS_LIST_NEXT, PS_LIST_PREV, PS_LIST_UNKNOWN
    108108               );
    109109
     
    112112 *
    113113 */
    114 void psListSetIterator(psList * restrict list,  // /< list to retrieve element from
    115                        int where        // /< index number, PS_LIST_HEAD, or PS_LIST_TAIL
     114void psListSetIterator(psList * restrict list,  ///< list to retrieve element from
     115                       int where        ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL
    116116                      );
    117117
     
    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
     
    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
     
    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
  • trunk/psLib/src/collections/psMetadata.h

    r1407 r1426  
    1111*  @author Ross Harman, MHPCC
    1212*
    13 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2004-08-07 00:06:06 $
     13*  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2004-08-09 22:44:25 $
    1515*
    1616*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3434 */
    3535typedef enum {
    36     PS_META_ITEM_SET = 0,       // /< Null. Metadata is in psMetadataItem.items
    37     PS_META_BOOL,                          // /< Boolean data.
    38     PS_META_S32,                           // /< Signed 32-bit integer data.
    39     PS_META_F32,                           // /< Single-precision float data.
    40     PS_META_F64,                           // /< Double-precision float data.
    41     PS_META_STR,                           // /< String data (Stored in as void *).
    42     PS_META_IMG,                           // /< Image data (Stored in as void *).
    43     PS_META_JPEG,                          // /< JPEG data (Stored in as void .
    44     PS_META_PNG,                           // /< PNG data (Stored in as void *).
    45     PS_META_ASTROM,                        // /< Astrometric coefficients (Stored in as void *).
    46     PS_META_UNKNOWN,                       // /< Other data (Stored in as void *).
    47     PS_META_NTYPE                          // /< Number of types. Must be last.
     36    PS_META_ITEM_SET = 0,       ///< Null. Metadata is in psMetadataItem.items
     37    PS_META_BOOL,                          ///< Boolean data.
     38    PS_META_S32,                           ///< Signed 32-bit integer data.
     39    PS_META_F32,                           ///< Single-precision float data.
     40    PS_META_F64,                           ///< Double-precision float data.
     41    PS_META_STR,                           ///< String data (Stored in as void *).
     42    PS_META_IMG,                           ///< Image data (Stored in as void *).
     43    PS_META_JPEG,                          ///< JPEG data (Stored in as void .
     44    PS_META_PNG,                           ///< PNG data (Stored in as void *).
     45    PS_META_ASTROM,                        ///< Astrometric coefficients (Stored in as void *).
     46    PS_META_UNKNOWN,                       ///< Other data (Stored in as void *).
     47    PS_META_NTYPE                          ///< Number of types. Must be last.
    4848} psMetadataType;
    4949
     
    5555typedef struct psMetadataItem
    5656{
    57     const int id;               // /< Unique ID for metadata item.
    58     char *restrict name;        // /< Name of metadata item.
    59     psMetadataType type;        // /< Type of metadata item.
     57    const int id;               ///< Unique ID for metadata item.
     58    char *restrict name;        ///< Name of metadata item.
     59    psMetadataType type;        ///< Type of metadata item.
    6060    union {
    6161        bool B;
    62         psS32 S32;              // /< Signed 32-bit integer data.
    63         psF32 F32;              // /< Single-precision float data.
    64         psF64 F64;              // /< Double-precision float data.
    65         psPTR V;                // /< Pointer to other type of data.
    66     } data;                     // /< Union for data types.
    67     char *comment;              // /< Optional comment ("", not NULL).
    68     psList *restrict items;     // /< List of psMetadataItems with same name.
     62        psS32 S32;              ///< Signed 32-bit integer data.
     63        psF32 F32;              ///< Single-precision float data.
     64        psF64 F64;              ///< Double-precision float data.
     65        psPTR V;                ///< Pointer to other type of data.
     66    } data;                     ///< Union for data types.
     67    char *comment;              ///< Optional comment ("", not NULL).
     68    psList *restrict items;     ///< List of psMetadataItems with same name.
    6969}
    7070psMetadataItem;
     
    102102 * @return psMetadataItem*: Pointer metadata item.
    103103 */
    104 psMetadataItem *psMetadataItemAlloc(const char *name,   // /< Name of metadata item.
    105                                     psMetadataType type,        // /< Type of metadata item.
    106                                     const char *comment,        // /< Comment for metadata item.
    107                                     ... // /< Arguments for name formatting and metadata item data.
     104psMetadataItem *psMetadataItemAlloc(const char *name,   ///< Name of metadata item.
     105                                    psMetadataType type,        ///< Type of metadata item.
     106                                    const char *comment,        ///< Comment for metadata item.
     107                                    ... ///< Arguments for name formatting and metadata item data.
    108108                                   );
    109109
     
    121121 * @return psMetadataItem*: Pointer metadata item.
    122122 */
    123 psMetadataItem *psMetadataItemAllocV(const char *name,  // /< Name of metadata item.
    124                                      psMetadataType type,       // /< Type of metadata item.
    125                                      const char *comment,       // /< Comment for metadata item.
    126                                      va_list list       // /< Arguments for name formatting and metadata item
     123psMetadataItem *psMetadataItemAllocV(const char *name,  ///< Name of metadata item.
     124                                     psMetadataType type,       ///< Type of metadata item.
     125                                     const char *comment,       ///< Comment for metadata item.
     126                                     va_list list       ///< Arguments for name formatting and metadata item
    127127                                     // data.
    128128                                    );
     
    134134 * @return psMetadata*: Pointer metadata.
    135135 */
    136 psMetadata *psMetadataAlloc(void        // /< Void.
     136psMetadata *psMetadataAlloc(void        ///< Void.
    137137                           );
    138138
     
    143143 * @return bool: True for success, false for failure.
    144144 */
    145 bool psMetadataAddItem(psMetadata * restrict md,        // /< Metadata collection to insert metadat item.
    146                        int where,       // /< Location to be added.
    147                        psMetadataItem * restrict item   // /< Metadata item to be added.
     145bool psMetadataAddItem(psMetadata * restrict md,        ///< Metadata collection to insert metadat item.
     146                       int where,       ///< Location to be added.
     147                       psMetadataItem * restrict item   ///< Metadata item to be added.
    148148                      );
    149149
     
    154154 * @return bool: True for success, false for failure.
    155155 */
    156 bool psMetadataAdd(psMetadata * restrict md,    // /< Metadata collection to insert metadat item.
    157                    int where,   // /< Location to be added.
    158                    const char *name,    // /< Name of metadata item.
    159                    psMetadataType type, // /< Type of metadata item.
    160                    const char *comment, // /< Comment for metadata item.
    161                    ...          // /< Arguments for name formatting and metadata item data.
     156bool psMetadataAdd(psMetadata * restrict md,    ///< Metadata collection to insert metadat item.
     157                   int where,   ///< Location to be added.
     158                   const char *name,    ///< Name of metadata item.
     159                   psMetadataType type, ///< Type of metadata item.
     160                   const char *comment, ///< Comment for metadata item.
     161                   ...          ///< Arguments for name formatting and metadata item data.
    162162                  );
    163163
     
    171171 * @return bool: True for success, false for failure.
    172172 */
    173 bool psMetadataRemove(psMetadata * restrict md, // /< Metadata collection to insert metadat item.
    174                       int where,        // /< Location to be removed.
    175                       const char *restrict key  // /< Name of metadata key.
     173bool psMetadataRemove(psMetadata * restrict md, ///< Metadata collection to insert metadat item.
     174                      int where,        ///< Location to be removed.
     175                      const char *restrict key  ///< Name of metadata key.
    176176                     );
    177177
     
    183183 * @return psMetadataItem*: Pointer metadata item.
    184184 */
    185 psMetadataItem *psMetadataLookup(psMetadata * restrict md,      // /< Metadata collection to insert metadat
     185psMetadataItem *psMetadataLookup(psMetadata * restrict md,      ///< Metadata collection to insert metadat
    186186                                 // item.
    187                                  const char *restrict key       // /< Name of metadata key.
     187                                 const char *restrict key       ///< Name of metadata key.
    188188                                );
    189189
     
    194194 * @return psMetadataItem*: Pointer metadata item.
    195195 */
    196 psMetadataItem *psMetadataGet(psMetadata * restrict md, // /< Metadata collection to insert metadat item.
    197                               int where // /< Location to be retrieved.
     196psMetadataItem *psMetadataGet(psMetadata * restrict md, ///< Metadata collection to insert metadat item.
     197                              int where ///< Location to be retrieved.
    198198                             );
    199199
     
    204204 * @return void: void.
    205205 */
    206 bool psMetadataSetIterator(psMetadata * restrict md,    // /< Metadata collection to iterate.
    207                            int where    // /< Location of iterator.
     206bool psMetadataSetIterator(psMetadata * restrict md,    ///< Metadata collection to iterate.
     207                           int where    ///< Location of iterator.
    208208                          );
    209209
     
    214214 * @return psMetadataItem*: Pointer metadata item.
    215215 */
    216 psMetadataItem *psMetadataGetNext(psMetadata * restrict md,     // /< Metadata collection to iterate.
    217                                   const char *restrict match,   // /< Beginning of key name.
    218                                   int which     // /< Iterator to be used.
     216psMetadataItem *psMetadataGetNext(psMetadata * restrict md,     ///< Metadata collection to iterate.
     217                                  const char *restrict match,   ///< Beginning of key name.
     218                                  int which     ///< Iterator to be used.
    219219                                 );
    220220
     
    225225 * @return psMetadataItem*: Pointer metadata item.
    226226 */
    227 psMetadataItem *psMetadataGetPrevious(psMetadata * restrict md, // /< Metadata collection to iterate.
    228                                       const char *restrict match,       // /< Beginning of key name.
    229                                       int which // /< Iterator to be used.
     227psMetadataItem *psMetadataGetPrevious(psMetadata * restrict md, ///< Metadata collection to iterate.
     228                                      const char *restrict match,       ///< Beginning of key name.
     229                                      int which ///< Iterator to be used.
    230230                                     );
    231231
     
    240240 * @return psMetadataItem*: Pointer metadata item.
    241241 */
    242 void psMetadataItemPrint(FILE * fd,     // /< Pointer to file to write metadata item.
    243                          const char *format,    // /< Format to print metadata item.
    244                          const psMetadataItem * restrict metadataItem   // /< Metadata item to print.
     242void psMetadataItemPrint(FILE * fd,     ///< Pointer to file to write metadata item.
     243                         const char *format,    ///< Format to print metadata item.
     244                         const psMetadataItem * restrict metadataItem   ///< Metadata item to print.
    245245                        );
    246246
     
    252252 * @return psMetadata*: Pointer metadata.
    253253 */
    254 psMetadata *psMetadataReadHeader(psMetadata * output,   // /< Resulting metadata from read.
    255                                  char *extname, // /< File name extension string.
    256                                  int extnum,    // /< File name extension number. Starts at 1.
    257                                  char *filename // /< Name of file to read.
     254psMetadata *psMetadataReadHeader(psMetadata * output,   ///< Resulting metadata from read.
     255                                 char *extname, ///< File name extension string.
     256                                 int extnum,    ///< File name extension number. Starts at 1.
     257                                 char *filename ///< Name of file to read.
    258258                                );
    259259
     
    264264 * @return psMetadata*: Pointer metadata.
    265265 */
    266 psMetadata *psMetadataFReadHeader(psMetadata * output,  // /< Resulting metadata from read.
    267                                   char *extName,        // /< File name extension string.
    268                                   int extNum,   // /< File name extension number.
    269                                   fitsfile * fd // /< Pointer to file to read.
     266psMetadata *psMetadataFReadHeader(psMetadata * output,  ///< Resulting metadata from read.
     267                                  char *extName,        ///< File name extension string.
     268                                  int extNum,   ///< File name extension number.
     269                                  fitsfile * fd ///< Pointer to file to read.
    270270                                 );
    271271
  • trunk/psLib/src/collections/psScalar.h

    r1407 r1426  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-08-07 00:06:06 $
     13 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2004-08-09 22:44:25 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232typedef struct
    3333{
    34     psType type;                // /< Type of data.
     34    psType type;                ///< Type of data.
    3535
    3636    union {
    37         psU8 U8;                // /< Unsigned 8-bit integer data.
    38         psU16 U16;              // /< Unsigned 16-bit integer data.
    39         psU32 U32;              // /< Unsigned 32-bit integer data.
    40         psU64 U64;              // /< Unsigned 64-bit integer data.
    41         psS8 S8;                // /< Signed 8-bit integer data.
    42         psS16 S16;              // /< Signed 16-bit integer data.
    43         psS32 S32;              // /< Signed 32-bit integer data.
    44         psS64 S64;              // /< Signed 64-bit integer data.
    45         psF32 F32;              // /< Single-precision float data.
    46         psF64 F64;              // /< Double-precision float data.
    47         psC32 C32;              // /< Single-precision complex data.
    48         psC64 C64;              // /< Double-precision complex data.
    49     } data;                     // /< Union for data types.
     37        psU8 U8;                ///< Unsigned 8-bit integer data.
     38        psU16 U16;              ///< Unsigned 16-bit integer data.
     39        psU32 U32;              ///< Unsigned 32-bit integer data.
     40        psU64 U64;              ///< Unsigned 64-bit integer data.
     41        psS8 S8;                ///< Signed 8-bit integer data.
     42        psS16 S16;              ///< Signed 16-bit integer data.
     43        psS32 S32;              ///< Signed 32-bit integer data.
     44        psS64 S64;              ///< Signed 64-bit integer data.
     45        psF32 F32;              ///< Single-precision float data.
     46        psF64 F64;              ///< Double-precision float data.
     47        psC32 C32;              ///< Single-precision complex data.
     48        psC64 C64;              ///< Double-precision complex data.
     49    } data;                     ///< Union for data types.
    5050}
    5151psScalar;
     
    6565 *
    6666 */
    67 psScalar *psScalarAlloc(psC64 value,    // /< Data to be put into psScalar.
    68                         psElemType dataType     // /< Type of data to be held by psScalar.
     67psScalar *psScalarAlloc(psC64 value,    ///< Data to be put into psScalar.
     68                        psElemType dataType     ///< Type of data to be held by psScalar.
    6969                       );
    7070
     
    7676 *
    7777 */
    78 void psScalarFree(psScalar * restrict scalar    // /< Scalar to free.
     78void psScalarFree(psScalar * restrict scalar    ///< Scalar to free.
    7979                 );
    8080
  • trunk/psLib/src/collections/psVector.h

    r1407 r1426  
    1212 *  @author Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2004-08-07 00:06:06 $
     14 *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2004-08-09 22:44:25 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3333typedef struct
    3434{
    35     psType type;                // /< Type of data.
    36     unsigned int nalloc;        // /< Total number of elements available.
    37     unsigned int n;             // /< Number of elements in use.
     35    psType type;                ///< Type of data.
     36    unsigned int nalloc;        ///< Total number of elements available.
     37    unsigned int n;             ///< Number of elements in use.
    3838
    3939    union {
    40         psU8 *U8;               // /< Unsigned 8-bit integer data.
    41         psU16 *U16;             // /< Unsigned 16-bit integer data.
    42         psU32 *U32;             // /< Unsigned 32-bit integer data.
    43         psU64 *U64;             // /< Unsigned 64-bit integer data.
    44         psS8 *S8;               // /< Signed 8-bit integer data.
    45         psS16 *S16;             // /< Signed 16-bit integer data.
    46         psS32 *S32;             // /< Signed 32-bit integer data.
    47         psS64 *S64;             // /< Signed 64-bit integer data.
    48         psF32 *F32;             // /< Single-precision float data.
    49         psF64 *F64;             // /< Double-precision float data.
    50         psC32 *C32;             // /< Single-precision complex data.
    51         psC64 *C64;             // /< Double-precision complex data.
    52         psPTR V;                // /< Pointer to data.
    53     } data;                     // /< Union for data types.
     40        psU8 *U8;               ///< Unsigned 8-bit integer data.
     41        psU16 *U16;             ///< Unsigned 16-bit integer data.
     42        psU32 *U32;             ///< Unsigned 32-bit integer data.
     43        psU64 *U64;             ///< Unsigned 64-bit integer data.
     44        psS8 *S8;               ///< Signed 8-bit integer data.
     45        psS16 *S16;             ///< Signed 16-bit integer data.
     46        psS32 *S32;             ///< Signed 32-bit integer data.
     47        psS64 *S64;             ///< Signed 64-bit integer data.
     48        psF32 *F32;             ///< Single-precision float data.
     49        psF64 *F64;             ///< Double-precision float data.
     50        psC32 *C32;             ///< Single-precision complex data.
     51        psC64 *C64;             ///< Double-precision complex data.
     52        psPTR V;                ///< Pointer to data.
     53    } data;                     ///< Union for data types.
    5454}
    5555psVector;
     
    6868 *
    6969 */
    70 psVector *psVectorAlloc(unsigned int nalloc,    // /< Total number of elements to make available.
    71                         psElemType dataType     // /< Type of data to be held by vector.
     70psVector *psVectorAlloc(unsigned int nalloc,    ///< Total number of elements to make available.
     71                        psElemType dataType     ///< Type of data to be held by vector.
    7272                       );
    7373
     
    8080 *
    8181 */
    82 psVector *psVectorRealloc(unsigned int nalloc,  // /< Total number of elements to make available.
    83                           psVector * restrict psVec     // /< Vector to reallocate.
     82psVector *psVectorRealloc(unsigned int nalloc,  ///< Total number of elements to make available.
     83                          psVector * restrict psVec     ///< Vector to reallocate.
    8484                         );
    8585
     
    9393 */
    9494psVector *psVectorRecycle(psVector * restrict psVec,
    95                           // /< Vector to recycle.  If NULL, a new vector is created.  No effort taken to
     95                          ///< Vector to recycle.  If NULL, a new vector is created.  No effort taken to
    9696                          // preserve the values.
    97                           unsigned int nalloc,  // /< Total number of elements to make available.
    98                           psElemType type       // /< the datatype of the returned vector
     97                          unsigned int nalloc,  ///< Total number of elements to make available.
     98                          psElemType type       ///< the datatype of the returned vector
    9999                         );
    100100
     
    107107 */
    108108
    109 psVector *psVectorSort(psVector * restrict outVector,   // /< the output vector to recycle, or NULL if new
     109psVector *psVectorSort(psVector * restrict outVector,   ///< the output vector to recycle, or NULL if new
    110110                       // vector desired.
    111                        const psVector * restrict inVector       // /< the vector to sort.
     111                       const psVector * restrict inVector       ///< the vector to sort.
    112112                      );
    113113
Note: See TracChangeset for help on using the changeset viewer.