pfScalar(3pf) OpenGL Performer 3.2.2 libpf C Reference Pages pfScalar(3pf)NAMEpfGetScalarClassType - A scalar function
FUNCTION SPECIFICATION
#include <Performer/pf.h>
pfType * pfGetScalarClassType(void);
PARENT CLASS FUNCTIONS
The OpenGL Performer class pfScalar is derived from the parent class
pfObject, so each of these member functions of class pfObject are also
directly usable with objects of class pfScalar. Casting an object of
class pfScalar to an object of class pfObject is taken care of
automatically. This is also true for casts to objects of ancestor
classes of class pfObject.
void pfUserDataSlot(pfObject *obj, int slot, void *data);
void pfUserData(pfObject *obj, void *data);
void* pfGetUserDataSlot(pfObject *obj, int slot);
void* pfGetUserData(pfObject *obj);
int pfGetNumUserData(pfObject *obj);
int pfGetNamedUserDataSlot(const char *name);
const char* pfGetUserDataSlotName(int slot);
int pfGetNumNamedUserDataSlots(void);
int pfDeleteGLHandle(pfObject *obj);
Since the class pfObject is itself derived from the parent class
pfMemory, objects of class pfScalar can also be used with these functions
designed for objects of class pfMemory.
pfType * pfGetType(const void *ptr);
int pfIsOfType(const void *ptr, pfType *type);
int pfIsExactType(const void *ptr, pfType *type);
const char * pfGetTypeName(const void *ptr);
int pfRef(void *ptr);
int pfUnref(void *ptr);
int pfUnrefDelete(void *ptr);
int pfUnrefGetRef(void *ptr);
int pfGetRef(const void *ptr);
int pfCopy(void *dst, void *src);
int pfDelete(void *ptr);
int pfIsFluxed(void *ptr);
int pfCompare(const void *ptr1, const void *ptr2);
void pfPrint(const void *ptr, uint which, uint verbose,
FILE *file);
void * pfGetArena(void *ptr);
DESCRIPTION
pfScalar is an abstract class that describes a scalar function: s =
s(u).
Page 1
pfScalar(3pf) OpenGL Performer 3.2.2 libpf C Reference Pages pfScalar(3pf)pfGetScalarClassType returns the pfType* for the class pfScalar. the
pfType* returned by pfGetScalarClassType is the same as the pfType*
returned by invoking pfGetType on any instance of class pfScalar.
Because OpenGL Performer allows subclassing of built-in types, when
decisions are made based on the type of an object, it is usually better
to use pfIsOfType to test if an object is of a type derived from a
Performer type rather than to test for strict equality of the pfType*'s.
SEE ALSO
pfObject
Page 2