Changeset 4898 for trunk/psLib/src/mathtypes
- Timestamp:
- Aug 29, 2005, 3:14:13 PM (21 years ago)
- Location:
- trunk/psLib/src/mathtypes
- Files:
-
- 6 edited
-
psImage.c (modified) (2 diffs)
-
psImage.h (modified) (2 diffs)
-
psScalar.c (modified) (4 diffs)
-
psScalar.h (modified) (2 diffs)
-
psVector.c (modified) (2 diffs)
-
psVector.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psImage.c
r4887 r4898 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.7 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-08- 26 23:01:17$11 * @version $Revision: 1.78 $ $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 … … 90 90 return image; 91 91 } 92 93 94 bool psMemCheckImage(psPtr ptr) 95 { 96 return ( psMemGetDeallocator(ptr) == (psFreeFunc)imageFree ); 97 } 98 92 99 93 100 psRegion psRegionSet(float x0, -
trunk/psLib/src/mathtypes/psImage.h
r4886 r4898 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.6 3$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-08- 26 03:35:02$13 * @version $Revision: 1.64 $ $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 … … 111 111 ; 112 112 113 114 /** Checks the type of a particular pointer. 115 * 116 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 117 * 118 * @return bool: True if the pointer matches a psImage structure, false otherwise. 119 */ 120 bool psMemCheckImage( 121 psPtr ptr ///< the pointer whose type to check 122 ); 123 124 113 125 /** Create a psRegion with the specified attributes. 114 126 * -
trunk/psLib/src/mathtypes/psScalar.c
r4540 r4898 8 8 * @author Ross Harman, MHPCC 9 9 * 10 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 7-12 19:12:01$10 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-08-30 01:14:13 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 22 22 #include "psErrorText.h" 23 23 24 static void scalarFree(psScalar *scalar) 25 { 26 // There are non dynamic allocated items 27 } 28 24 29 psScalar* psScalarAlloc(complex value, psElemType type) 25 30 { … … 28 33 // Create scalar 29 34 scalar = (psScalar* ) psAlloc(sizeof(psScalar)); 30 35 psMemSetDeallocator(scalar, (psFreeFunc)scalarFree); 31 36 scalar->type.dimen = PS_DIMEN_SCALAR; 32 37 scalar->type.type = type; … … 79 84 return scalar; 80 85 } 86 87 88 bool psMemCheckScalar(psPtr ptr) 89 { 90 return ( psMemGetDeallocator(ptr) == (psFreeFunc)scalarFree ); 91 } 92 81 93 82 94 psScalar* psScalarCopy(const psScalar *value) -
trunk/psLib/src/mathtypes/psScalar.h
r4540 r4898 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 7-12 19:12:01$13 * @version $Revision: 1.16 $ $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 … … 70 70 ); 71 71 72 73 /** Checks the type of a particular pointer. 74 * 75 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 76 * 77 * @return bool: True if the pointer matches a psScalar structure, false otherwise. 78 */ 79 bool psMemCheckScalar( 80 psPtr ptr ///< the pointer whose type to check 81 ); 82 83 72 84 /** Copy a scalar. 73 85 * -
trunk/psLib/src/mathtypes/psVector.c
r4887 r4898 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1. 49$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-08- 26 23:01:17$11 * @version $Revision: 1.50 $ $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 … … 60 60 61 61 // FUNCTION IMPLEMENTATION - PUBLIC 62 bool psMemCheckVector(psPtr ptr) 63 { 64 return ( psMemGetDeallocator(ptr) == (psFreeFunc)vectorFree ); 65 } 66 62 67 63 68 psVector* psVectorAlloc(long nalloc, -
trunk/psLib/src/mathtypes/psVector.h
r4887 r4898 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.4 1$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-08- 26 23:01:17$13 * @version $Revision: 1.42 $ $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 … … 61 61 /*****************************************************************************/ 62 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 psVector structure, false otherwise. 68 */ 69 bool psMemCheckVector( 70 psPtr ptr ///< the pointer whose type to check 71 ) 72 ; 63 73 64 74 /** Allocate a vector. … … 72 82 long nalloc, ///< Total number of elements to make available. 73 83 psElemType type ///< Type of data to be held by vector. 74 ) 75 ; 84 ); 76 85 77 86 /** Reallocate a vector.
Note:
See TracChangeset
for help on using the changeset viewer.
