Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

Scalar


Files

file  psScalar.h
 Contains basic scalar definitions and operations.

Data Structures

struct  psScalar
 Basic scalar data structure. More...

Functions

psScalarpsScalarAlloc (complex value, psElemType type)
 Allocate a scalar.
bool psMemCheckScalar (psPtr ptr)
 Checks the type of a particular pointer.
psScalarpsScalarCopy (const psScalar *value)
 Copy a scalar.


Function Documentation

bool psMemCheckScalar psPtr  ptr  ) 
 

Checks the type of a particular pointer.

Uses the appropriate deallocation function in psMemBlock to check the ptr datatype.

Returns:
bool: True if the pointer matches a psScalar structure, false otherwise.
Parameters:
ptr  the pointer whose type to check

psScalar* psScalarAlloc complex  value,
psElemType  type
 

Allocate a scalar.

Uses psLib memory allocation functions to create scalar data as defined by the psType type. Accepts a complex 64 bit float for input value, as max size, but resizes according to correct type.

Returns:
psScalar* Pointer to a new psScalar.
Parameters:
value  Data to be put into psScalar.
type  Type of data to be held by psScalar.

psScalar* psScalarCopy const psScalar value  ) 
 

Copy a scalar.

Uses psLib memory allocation functions to copy a scalar.

Returns:
psScalar* A copy of the input scalar
Parameters:
value  Scalar to copy.


Generated on Wed Sep 14 10:43:47 2005 for Pan-STARRS Foundation Library by  doxygen 1.4.2