Changeset 4898 for trunk/psLib/src/types
- Timestamp:
- Aug 29, 2005, 3:14:13 PM (21 years ago)
- Location:
- trunk/psLib/src/types
- Files:
-
- 14 edited
-
psArray.c (modified) (2 diffs)
-
psArray.h (modified) (3 diffs)
-
psBitSet.c (modified) (2 diffs)
-
psBitSet.h (modified) (3 diffs)
-
psHash.c (modified) (2 diffs)
-
psHash.h (modified) (2 diffs)
-
psList.c (modified) (2 diffs)
-
psList.h (modified) (2 diffs)
-
psLookupTable.c (modified) (2 diffs)
-
psLookupTable.h (modified) (2 diffs)
-
psMetadata.c (modified) (3 diffs)
-
psMetadata.h (modified) (3 diffs)
-
psPixels.c (modified) (2 diffs)
-
psPixels.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psArray.c
r4600 r4898 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.3 6$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 7-22 23:47:13 $11 * @version $Revision: 1.37 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-08-30 01:14:13 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 45 45 psFree(psArr->data); 46 46 } 47 48 bool psMemCheckArray(psPtr ptr) 49 { 50 return ( psMemGetDeallocator(ptr) == (psFreeFunc)arrayFree ); 51 } 52 47 53 48 54 /***************************************************************************** -
trunk/psLib/src/types/psArray.h
r4600 r4898 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.3 0$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 7-22 23:47:13 $14 * @version $Revision: 1.31 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-08-30 01:14:13 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 47 47 /*****************************************************************************/ 48 48 49 /** Checks the type of a particular pointer. 50 * 51 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 52 * 53 * @return bool: True if the pointer matches a psArray structure, false otherwise. 54 */ 55 bool psMemCheckArray( 56 psPtr ptr ///< the pointer whose type to check 57 ) 58 ; 59 60 49 61 /** Allocate an array. 50 62 * … … 57 69 psArray* psArrayAlloc( 58 70 long nalloc ///< Total number of elements to make available. 59 ) 60 ; 71 ); 61 72 62 73 /** Reallocate an array. -
trunk/psLib/src/types/psBitSet.c
r4819 r4898 11 11 * @author Robert DeSonia, MHPCC 12 12 * 13 * @version $Revision: 1.3 0$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-08- 19 00:31:42$13 * @version $Revision: 1.31 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-08-30 01:14:13 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 65 65 psFree(inBitSet->bits); 66 66 } 67 68 bool psMemCheckBitSet(psPtr ptr) 69 { 70 return ( psMemGetDeallocator(ptr) == (psFreeFunc)bitSetFree ); 71 } 72 67 73 68 74 psBitSet* psBitSetAlloc(long nalloc) -
trunk/psLib/src/types/psBitSet.h
r4610 r4898 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 7-26 00:44:45$14 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-08-30 01:14:13 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 47 47 /*****************************************************************************/ 48 48 49 /** Checks the type of a particular pointer. 50 * 51 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 52 * 53 * @return bool: True if the pointer matches a psBitSet structure, false otherwise. 54 */ 55 bool psMemCheckBitSet( 56 psPtr ptr ///< the pointer whose type to check 57 ) 58 ; 59 60 49 61 /** Allocate a psBitSet. 50 62 * … … 56 68 psBitSet* psBitSetAlloc( 57 69 long nalloc ///< Number of bits in psBitSet array 58 ) 59 ; 70 ); 60 71 61 72 /** Set a bit. -
trunk/psLib/src/types/psHash.c
r4556 r4898 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.2 3$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 7-15 02:33:54$14 * @version $Revision: 1.24 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-08-30 01:14:13 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 160 160 } 161 161 162 bool psMemCheckHash(psPtr ptr) 163 { 164 return ( psMemGetDeallocator(ptr) == (psFreeFunc)hashFree ); 165 } 166 167 162 168 /****************************************************************************** 163 169 hashFree(table): This procedure deallocates the specified hash -
trunk/psLib/src/types/psHash.h
r4556 r4898 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 7-15 02:33:54$13 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-08-30 01:14:13 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 46 46 psHash; 47 47 48 /** Checks the type of a particular pointer. 49 * 50 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 51 * 52 * @return bool: True if the pointer matches a psHash structure, false otherwise. 53 */ 54 bool psMemCheckHash( 55 psPtr ptr ///< the pointer whose type to check 56 ) 57 ; 58 59 48 60 /// Allocate hash buckets in table. 49 61 psHash* psHashAlloc( 50 62 long nalloc ///< The number of buckets to allocate. 51 ) 52 ; 63 ); 53 64 54 65 /// Insert entry into table. -
trunk/psLib/src/types/psList.c
r4556 r4898 6 6 * @author Robert Daniel DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.4 1$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-0 7-15 02:33:54$8 * @version $Revision: 1.42 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-08-30 01:14:13 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 148 148 return list; 149 149 } 150 151 bool psMemCheckList(psPtr ptr) 152 { 153 return ( psMemGetDeallocator(ptr) == (psFreeFunc)listFree ); 154 } 155 156 150 157 151 158 psListIterator* psListIteratorAlloc(psList* list, long location, bool mutable) -
trunk/psLib/src/types/psList.h
r4590 r4898 7 7 * @ingroup LinkedList 8 8 * 9 * @version $Revision: 1.3 0$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 7-21 02:39:57$9 * @version $Revision: 1.31 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-08-30 01:14:13 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 84 84 85 85 86 /** Creates a psList linked list object. 87 * 88 * @return psList* A new psList object. 89 */ 90 psList* psListAlloc( 91 psPtr data 92 ///< initial data item; may be NULL if no an empty psList is desired 86 /** Checks the type of a particular pointer. 87 * 88 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 89 * 90 * @return bool: True if the pointer matches a psList structure, false otherwise. 91 */ 92 bool psMemCheckList( 93 psPtr ptr ///< the pointer whose type to check 93 94 ) 94 95 ; 96 97 98 /** Creates a psList linked list object. 99 * 100 * @return psList* A new psList object. 101 */ 102 psList* psListAlloc( 103 psPtr data ///< initial data item; may be NULL if an empty psList is desired 104 ); 95 105 96 106 /** Creates a psListIterator object and associates it with a psList. -
trunk/psLib/src/types/psLookupTable.c
r4589 r4898 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1.2 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 7-21 01:40:10$9 * @version $Revision: 1.25 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-08-30 01:14:13 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 263 263 /* FUNCTION IMPLEMENTATION - PUBLIC */ 264 264 /*****************************************************************************/ 265 266 bool psMemCheckLookupTable(psPtr ptr) 267 { 268 return ( psMemGetDeallocator(ptr) == (psFreeFunc)lookupTableFree ); 269 } 270 265 271 266 272 psLookupTable* psLookupTableAlloc(const char *filename, -
trunk/psLib/src/types/psLookupTable.h
r4589 r4898 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 7-21 01:40:10$9 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-08-30 01:14:13 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 60 60 PS_PARSE_ERROR_GENERAL = 0x0104 ///< Any other type of lookup error 61 61 }psParseErrorType; 62 63 /** Checks the type of a particular pointer. 64 * 65 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 66 * 67 * @return bool: True if the pointer matches a psLookupTable structure, false otherwise. 68 */ 69 bool psMemCheckLookupTable( 70 psPtr ptr ///< the pointer whose type to check 71 ); 72 62 73 63 74 /** Allocator for psLookupTable struct -
trunk/psLib/src/types/psMetadata.c
r4891 r4898 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.7 8$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-08- 27 01:33:41$14 * @version $Revision: 1.79 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-08-30 01:14:13 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 162 162 return metadataItem; 163 163 } 164 165 bool psMemCheckMetadataItem(psPtr ptr) 166 { 167 return ( psMemGetDeallocator(ptr) == (psFreeFunc)metadataItemFree ); 168 } 169 164 170 165 171 #define METADATAITEM_ALLOC_TYPE(NAME,TYPE,METATYPE) \ … … 273 279 return metadata; 274 280 } 281 282 283 bool psMemCheckMetadata(psPtr ptr) 284 { 285 return ( psMemGetDeallocator(ptr) == (psFreeFunc)metadataFree ); 286 } 287 288 275 289 276 290 bool psMetadataAddItem(psMetadata *md, -
trunk/psLib/src/types/psMetadata.h
r4891 r4898 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 59$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-08- 27 01:33:41$13 * @version $Revision: 1.60 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-08-30 01:14:13 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 155 155 ; 156 156 157 158 /** Checks the type of a particular pointer. 159 * 160 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 161 * 162 * @return bool: True if the pointer matches a psMetadataItem structure, false otherwise. 163 */ 164 bool psMemCheckMetadataItem( 165 psPtr ptr ///< the pointer whose type to check 166 ); 167 168 157 169 /** Create a metadata item with specified string data. 158 170 * … … 253 265 psMetadata* psMetadataAlloc(void); 254 266 267 268 /** Checks the type of a particular pointer. 269 * 270 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 271 * 272 * @return bool: True if the pointer matches a psMetadata structure, false otherwise. 273 */ 274 bool psMemCheckMetadata( 275 psPtr ptr ///< the pointer whose type to check 276 ); 277 278 255 279 /** Add existing metadata item to metadata collection. 256 280 * -
trunk/psLib/src/types/psPixels.c
r4597 r4898 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 7-22 22:19:27$9 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-08-30 01:14:13 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 71 71 return out; 72 72 } 73 74 75 bool psMemCheckPixels(psPtr ptr) 76 { 77 return ( psMemGetDeallocator(ptr) == (psFreeFunc)pixelsFree ); 78 } 79 73 80 74 81 psPixels* psPixelsRealloc(psPixels* pixels, long nalloc) -
trunk/psLib/src/types/psPixels.h
r4608 r4898 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 7-25 20:49:04$9 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-08-30 01:14:13 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 57 57 ) 58 58 ; 59 60 /** Checks the type of a particular pointer. 61 * 62 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 63 * 64 * @return bool: True if the pointer matches a psPixels structure, false otherwise. 65 */ 66 bool psMemCheckPixels( 67 psPtr ptr ///< the pointer whose type to check 68 ); 69 59 70 60 71 /** resizes a psPixels structure
Note:
See TracChangeset
for help on using the changeset viewer.
