Changeset 1407 for trunk/psLib/src/collections/psArray.h
- Timestamp:
- Aug 6, 2004, 2:06:06 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psArray.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psArray.h
r1228 r1407 1 1 2 /** @file psArray.h 2 3 * … … 11 12 * @author Ross Harman, MHPCC 12 13 * 13 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-0 7-15 22:18:02$14 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-08-07 00:06:06 $ 15 16 * 16 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 18 19 19 20 #ifndef PS_ARRAY_H 20 # define PS_ARRAY_H21 # define PS_ARRAY_H 21 22 22 # include "psType.h"23 # include "psCompare.h"23 # include "psType.h" 24 # include "psCompare.h" 24 25 25 26 /// @addtogroup Array … … 33 34 typedef struct 34 35 { 35 unsigned int nalloc; ///< Total number of elements available.36 unsigned int n; ///< Number of elements in use.37 psPTR * data; ///< An Array of pointer elements36 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 38 39 } 39 40 psArray; 40 41 41 42 /*****************************************************************************/ 43 42 44 /* FUNCTION PROTOTYPES */ 45 43 46 /*****************************************************************************/ 44 47 … … 51 54 * 52 55 */ 53 psArray *psArrayAlloc( 54 unsigned int nalloc ///< Total number of elements to make available. 55 ); 56 psArray *psArrayAlloc(unsigned int nalloc // /< Total number of elements to make available. 57 ); 56 58 57 59 /** Reallocate an array. … … 63 65 * 64 66 */ 65 psArray *psArrayRealloc( 66 unsigned int nalloc, ///< Total number of elements to make available. 67 psArray *restrict psArr ///< array to reallocate. 68 ); 67 psArray *psArrayRealloc(unsigned int nalloc, // /< Total number of elements to make available. 68 psArray * restrict psArr // /< array to reallocate. 69 ); 69 70 70 71 /** Deallocate/Dereference elements of an array. … … 75 76 * 76 77 */ 77 void psArrayElementFree( 78 psArray *restrict psArr ///< Void pointer array to destroy. 79 ); 78 void psArrayElementFree(psArray * restrict psArr // /< Void pointer array to destroy. 79 ); 80 80 81 81 /** Sort the array according to an external compare function. … … 86 86 * @return psArray* The sorted array. 87 87 */ 88 psArray * psArraySort(psArray* in, psComparePtrFcn compare);88 psArray *psArraySort(psArray * in, psComparePtrFcn compare); 89 89 90 90 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
