Changeset 1471 for trunk/psLib/src/collections/psArray.h
- Timestamp:
- Aug 11, 2004, 9:47:31 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psArray.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psArray.h
r1441 r1471 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-08- 09 23:40:55$14 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-08-11 19:47:31 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 54 54 * 55 55 */ 56 psArray* psArrayAlloc(unsigned int nalloc ///< Total number of elements to make available. 57 ); 56 psArray* psArrayAlloc( 57 unsigned int nalloc ///< Total number of elements to make available. 58 ); 58 59 59 60 /** Reallocate an array. … … 65 66 * 66 67 */ 67 psArray* psArrayRealloc(unsigned int nalloc, ///< Total number of elements to make available. 68 psArray* restrict psArr ///< array to reallocate. 69 ); 68 psArray* psArrayRealloc( 69 unsigned int nalloc, ///< Total number of elements to make available. 70 psArray* restrict psArr ///< array to reallocate. 71 ); 70 72 71 73 /** Deallocate/Dereference elements of an array. … … 76 78 * 77 79 */ 78 void psArrayElementFree(psArray* restrict psArr ///< Void pointer array to destroy. 79 ); 80 void psArrayElementFree( 81 psArray* restrict psArr ///< Void pointer array to destroy. 82 ); 80 83 81 84 /** Sort the array according to an external compare function. … … 84 87 * to specify how the objects on the array should be sorted. 85 88 * 89 * The comparison function must return an integer less than, equal to, or 90 * greater than zero if the first argument is considered to be respectively 91 * less than, equal to, or greater than the second. 92 * 93 * If two members compare as equal, their order in the sorted array is 94 * undefined. 95 * 86 96 * @return psArray* The sorted array. 87 97 */ 88 psArray* psArraySort(psArray* in, psComparePtrFcn compare); 98 psArray* psArraySort( 99 psArray* in, ///< input array to sort. 100 psComparePtrFcn compare ///< the compare function 101 ); 89 102 90 103 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
