IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 533


Ignore:
Timestamp:
Apr 27, 2004, 2:19:05 PM (22 years ago)
Author:
Paul Price
Message:

Removed psVectorArray

File:
1 edited

Legend:

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

    r444 r533  
    7474typedef struct {
    7575    psType type;                        ///< Type of data.  THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT!
    76     int nalloc;                         ///< Total number of elements available
     76    int nAlloc;                         ///< Total number of elements available
    7777    int n;                              ///< Number of elements in use
    7878    float *arr;                         ///< The array data
     
    8080
    8181/** Constructor \ingroup DataGroup */
    82 psFloatArray *psFloatArrayAlloc(int nalloc)     ///< Total number of elements to make available
     82psFloatArray *psFloatArrayAlloc(int nAlloc)     ///< Total number of elements to make available
    8383;
    8484
    8585/** Reallocator \ingroup DataGroup */
    8686psFloatArray *psFloatArrayRealloc(psFloatArray *myArray, ///< Array to reallocate
    87                                   int nalloc) ///< Total number of elements to make available
     87                                  int nAlloc) ///< Total number of elements to make available
    8888;
    8989
     
    110110typedef struct {
    111111    psType type;                        ///< Type of data.  THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT!
    112     int nalloc;                         ///< Total number of elements available
     112    int nAlloc;                         ///< Total number of elements available
    113113    int n;                              ///< Number of elements in use
    114114    complex float *arr;                 ///< The array data
     
    116116
    117117/** Constructor \ingroup DataGroup */
    118 psComplexArray *psComplexArrayAlloc(int nalloc) ///< Total number of elements to make available
     118psComplexArray *psComplexArrayAlloc(int nAlloc) ///< Total number of elements to make available
    119119;
    120120
    121121/** Reallocator \ingroup DataGroup */
    122122psComplexArray *psComplexArrayRealloc(psComplexArray *myArray, ///< Array to reallocate
    123                                       int nalloc)       ///< Total number of elements to make available
     123                                      int nAlloc)       ///< Total number of elements to make available
    124124;
    125125
     
    133133typedef struct {
    134134    psType type;                        ///< Type of data.  THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT!
    135     int nalloc;                         ///< Total number of elements available
     135    int nAlloc;                         ///< Total number of elements available
    136136    int n;                              ///< Number of elements in use
    137137    int *arr;                           ///< The array data
     
    139139
    140140/** Constructor \ingroup DataGroup */
    141 psIntArray *psIntArrayAlloc(int nalloc) ///< Total number of elements to make available
     141psIntArray *psIntArrayAlloc(int nAlloc) ///< Total number of elements to make available
    142142;
    143143
    144144/** Reallocator \ingroup DataGroup */
    145145psIntArray *psIntArrayRealloc(psIntArray *myArray, ///< Array to reallocate
    146                               int nalloc)       ///< Total number of elements to make available
     146                              int nAlloc)       ///< Total number of elements to make available
    147147;
    148148
     
    156156typedef struct {
    157157    psType type;                        ///< Type of data.  THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT!
    158     int nalloc;                         ///< Total number of elements available
     158    int nAlloc;                         ///< Total number of elements available
    159159    int n;                              ///< Number of elements in use
    160160    double *arr;                        ///< The array data
     
    162162
    163163/** Constructor \ingroup DataGroup */
    164 psDoubleArray *psDoubleArrayAlloc(int nalloc) ///< Total number of elements to make available
     164psDoubleArray *psDoubleArrayAlloc(int nAlloc) ///< Total number of elements to make available
    165165;
    166166
    167167/** Reallocator \ingroup DataGroup */
    168168psDoubleArray *psDoubleArrayRealloc(psDoubleArray *myArray, ///< Array to reallocate
    169                                     int nalloc) ///< Total number of elements to make available
     169                                    int nAlloc) ///< Total number of elements to make available
    170170;
    171171
     
    173173void psDoubleArrayFree(psDoubleArray *restrict myArray) ///< Array to free
    174174;
    175 
    176 /************************************************************************************************************/
    177 
    178 /** An array of real vectors */
    179 typedef struct {
    180     psType type;                        ///< Type of data.  THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT!
    181     int nalloc;                         ///< Total number of elements available
    182     int n;                              ///< Number of elements in use
    183     psFloatArray *arr;                  ///< The array data
    184 } psVectorArray;
    185 
    186 /** Constructor \ingroup DataGroup */
    187 psVectorArray *psVectorArrayAlloc(int nalloc) ///< Total number of elements to make available
    188 ;
    189 
    190 /** Reallocator \ingroup DataGroup */
    191 psVectorArray *psVectorArrayRealloc(psVectorArray *myArray, ///< Array to reallocate
    192                                     int nalloc) ///< Total number of elements to make available
    193 ;
    194 
    195 /** Destructor \ingroup DataGroup */
    196 void psVectorArrayFree(psVectorArray *restrict myArray) ///< Array to free
    197 ;
    198 
    199 /************************************************************************************************************/
    200175
    201176/*****************************************************************************/
     
    207182    psType type;                        ///< Type of data.  THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT
    208183    int n;                              ///< Number of elements in use
    209     int nalloc;                         ///< Number of total elements
     184    int nAlloc;                         ///< Number of total elements
    210185    void **arr;                         ///< The elements
    211186} psVoidPtrArray;
    212187
    213188/** Constructor \ingroup DataGroup */
    214 psVoidPtrArray *psVoidPtrArrayAlloc(int nalloc) ///< Number of elements to use
     189psVoidPtrArray *psVoidPtrArrayAlloc(int nAlloc) ///< Number of elements to use
    215190;
    216191
    217192/** Reallocate \ingroup DataGroup */
    218193psVoidPtrArray *psVoidPtrArrayRealloc(psVoidPtrArray *arr, ///< Array to reallocate
    219                                       int nalloc) ///< Number of elements
     194                                      int nAlloc) ///< Number of elements
    220195;
    221196
Note: See TracChangeset for help on using the changeset viewer.