IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 29, 2005, 3:14:13 PM (21 years ago)
Author:
drobbin
Message:

Implemented psMemCheckType functions and tests. Some testing remains unfinished.

Location:
trunk/psLib/src/imageops
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageConvolve.c

    r4815 r4898  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2005-08-18 21:44:40 $
     7 *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2005-08-30 01:14:13 $
    99 *
    1010 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    8686    }
    8787}
     88
     89
     90bool psMemCheckKernel(psPtr ptr)
     91{
     92    return ( psMemGetDeallocator(ptr) == (psFreeFunc)freeKernel );
     93}
     94
    8895
    8996psKernel* psKernelGenerate(const psVector* tShifts,
  • trunk/psLib/src/imageops/psImageConvolve.h

    r4815 r4898  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-08-18 21:44:40 $
     9 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-08-30 01:14:13 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    7777);
    7878
     79/** Checks the type of a particular pointer.
     80 *
     81 *  Uses the appropriate deallocation function in psMemBlock to check the ptr datatype.
     82 *
     83 *  @return bool:       True if the pointer matches a psKernel structure, false otherwise.
     84 */
     85bool psMemCheckKernel(
     86    psPtr ptr                          ///< the pointer whose type to check
     87);
     88
     89
    7990/** Generates a kernel given a list of shift values
    8091 *
Note: See TracChangeset for help on using the changeset viewer.