Changeset 533
- Timestamp:
- Apr 27, 2004, 2:19:05 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psStdArrays.h (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psStdArrays.h
r444 r533 74 74 typedef struct { 75 75 psType type; ///< Type of data. THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT! 76 int n alloc; ///< Total number of elements available76 int nAlloc; ///< Total number of elements available 77 77 int n; ///< Number of elements in use 78 78 float *arr; ///< The array data … … 80 80 81 81 /** Constructor \ingroup DataGroup */ 82 psFloatArray *psFloatArrayAlloc(int n alloc) ///< Total number of elements to make available82 psFloatArray *psFloatArrayAlloc(int nAlloc) ///< Total number of elements to make available 83 83 ; 84 84 85 85 /** Reallocator \ingroup DataGroup */ 86 86 psFloatArray *psFloatArrayRealloc(psFloatArray *myArray, ///< Array to reallocate 87 int n alloc) ///< Total number of elements to make available87 int nAlloc) ///< Total number of elements to make available 88 88 ; 89 89 … … 110 110 typedef struct { 111 111 psType type; ///< Type of data. THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT! 112 int n alloc; ///< Total number of elements available112 int nAlloc; ///< Total number of elements available 113 113 int n; ///< Number of elements in use 114 114 complex float *arr; ///< The array data … … 116 116 117 117 /** Constructor \ingroup DataGroup */ 118 psComplexArray *psComplexArrayAlloc(int n alloc) ///< Total number of elements to make available118 psComplexArray *psComplexArrayAlloc(int nAlloc) ///< Total number of elements to make available 119 119 ; 120 120 121 121 /** Reallocator \ingroup DataGroup */ 122 122 psComplexArray *psComplexArrayRealloc(psComplexArray *myArray, ///< Array to reallocate 123 int n alloc) ///< Total number of elements to make available123 int nAlloc) ///< Total number of elements to make available 124 124 ; 125 125 … … 133 133 typedef struct { 134 134 psType type; ///< Type of data. THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT! 135 int n alloc; ///< Total number of elements available135 int nAlloc; ///< Total number of elements available 136 136 int n; ///< Number of elements in use 137 137 int *arr; ///< The array data … … 139 139 140 140 /** Constructor \ingroup DataGroup */ 141 psIntArray *psIntArrayAlloc(int n alloc) ///< Total number of elements to make available141 psIntArray *psIntArrayAlloc(int nAlloc) ///< Total number of elements to make available 142 142 ; 143 143 144 144 /** Reallocator \ingroup DataGroup */ 145 145 psIntArray *psIntArrayRealloc(psIntArray *myArray, ///< Array to reallocate 146 int n alloc) ///< Total number of elements to make available146 int nAlloc) ///< Total number of elements to make available 147 147 ; 148 148 … … 156 156 typedef struct { 157 157 psType type; ///< Type of data. THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT! 158 int n alloc; ///< Total number of elements available158 int nAlloc; ///< Total number of elements available 159 159 int n; ///< Number of elements in use 160 160 double *arr; ///< The array data … … 162 162 163 163 /** Constructor \ingroup DataGroup */ 164 psDoubleArray *psDoubleArrayAlloc(int n alloc) ///< Total number of elements to make available164 psDoubleArray *psDoubleArrayAlloc(int nAlloc) ///< Total number of elements to make available 165 165 ; 166 166 167 167 /** Reallocator \ingroup DataGroup */ 168 168 psDoubleArray *psDoubleArrayRealloc(psDoubleArray *myArray, ///< Array to reallocate 169 int n alloc) ///< Total number of elements to make available169 int nAlloc) ///< Total number of elements to make available 170 170 ; 171 171 … … 173 173 void psDoubleArrayFree(psDoubleArray *restrict myArray) ///< Array to free 174 174 ; 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 available182 int n; ///< Number of elements in use183 psFloatArray *arr; ///< The array data184 } psVectorArray;185 186 /** Constructor \ingroup DataGroup */187 psVectorArray *psVectorArrayAlloc(int nalloc) ///< Total number of elements to make available188 ;189 190 /** Reallocator \ingroup DataGroup */191 psVectorArray *psVectorArrayRealloc(psVectorArray *myArray, ///< Array to reallocate192 int nalloc) ///< Total number of elements to make available193 ;194 195 /** Destructor \ingroup DataGroup */196 void psVectorArrayFree(psVectorArray *restrict myArray) ///< Array to free197 ;198 199 /************************************************************************************************************/200 175 201 176 /*****************************************************************************/ … … 207 182 psType type; ///< Type of data. THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT 208 183 int n; ///< Number of elements in use 209 int n alloc; ///< Number of total elements184 int nAlloc; ///< Number of total elements 210 185 void **arr; ///< The elements 211 186 } psVoidPtrArray; 212 187 213 188 /** Constructor \ingroup DataGroup */ 214 psVoidPtrArray *psVoidPtrArrayAlloc(int n alloc) ///< Number of elements to use189 psVoidPtrArray *psVoidPtrArrayAlloc(int nAlloc) ///< Number of elements to use 215 190 ; 216 191 217 192 /** Reallocate \ingroup DataGroup */ 218 193 psVoidPtrArray *psVoidPtrArrayRealloc(psVoidPtrArray *arr, ///< Array to reallocate 219 int n alloc) ///< Number of elements194 int nAlloc) ///< Number of elements 220 195 ; 221 196
Note:
See TracChangeset
for help on using the changeset viewer.
