EV_FUNCTION Class Reference

#include <EXPR.h>

List of all members.

Public Member Functions

 EV_FUNCTION (unsigned flag=0, const char *name=0, int num_args=0, int result_type=EV_TYPEFLOAT, const int *argTypes=0, void(*callback)(EV_FUNCTION *me, EV_SYMBOL *result, EV_SYMBOL **args, int thread)=0, EXPRopDependencyCallback dependCB=0, EXPRopChangeRefCallback changeOpRefCB=0, int is_safe=1, bool is_threadsafe=false)
virtual ~EV_FUNCTION ()
unsigned getUserFlags () const
const char * getName () const
int getNArgs () const
int getResultType () const
const int * getArgTypes () const
int getArgType (int i) const
const char * getDSOLocation () const
void * getInstanceData (int thread)
void setInstanceAllocator (void *(*alloc)(), void(*freer)(void *))
void * allocInstanceData ()
void freeInstanceData (void *d)
void setOpDependencyCallback (EXPRopDependencyCallback cb)
void setChangeOpRefCallback (EXPRopChangeRefCallback cb)
int isSafe () const
bool isThreadSafe () const

Static Public Member Functions

static void setInstanceAllocator (const char *function, void *(*alloc)(), void(*freer)(void *))

Public Attributes

void(* myCallback )(EV_FUNCTION *me, EV_SYMBOL *result, EV_SYMBOL **args, int thread)
EXPRopDependencyCallback myDependCallback
EXPRopChangeRefCallback myChangeOpRefCallback
unsigned myFlags


Detailed Description

Examples:

expr/channel.C, and expr/functions.C.

Definition at line 196 of file EXPR.h.


Constructor & Destructor Documentation

EV_FUNCTION::EV_FUNCTION ( unsigned  flag = 0,
const char *  name = 0,
int  num_args = 0,
int  result_type = EV_TYPEFLOAT,
const int *  argTypes = 0,
void(*)(EV_FUNCTION *me, EV_SYMBOL *result, EV_SYMBOL **args, int thread)  callback = 0,
EXPRopDependencyCallback  dependCB = 0,
EXPRopChangeRefCallback  changeOpRefCB = 0,
int  is_safe = 1,
bool  is_threadsafe = false 
)

virtual EV_FUNCTION::~EV_FUNCTION (  )  [virtual]


Member Function Documentation

void* EV_FUNCTION::allocInstanceData (  )  [inline]

Definition at line 233 of file EXPR.h.

void EV_FUNCTION::freeInstanceData ( void *  d  )  [inline]

Definition at line 234 of file EXPR.h.

int EV_FUNCTION::getArgType ( int  i  )  const [inline]

Definition at line 220 of file EXPR.h.

const int* EV_FUNCTION::getArgTypes (  )  const [inline]

Definition at line 219 of file EXPR.h.

const char* EV_FUNCTION::getDSOLocation (  )  const [inline]

Definition at line 221 of file EXPR.h.

void* EV_FUNCTION::getInstanceData ( int  thread  ) 

getInstanceData() returns the instance data for the current evaluating expression function

const char* EV_FUNCTION::getName ( void   )  const [inline]

Examples:
expr/channel.C, and expr/functions.C.

Definition at line 216 of file EXPR.h.

int EV_FUNCTION::getNArgs (  )  const [inline]

Definition at line 217 of file EXPR.h.

int EV_FUNCTION::getResultType (  )  const [inline]

Definition at line 218 of file EXPR.h.

unsigned EV_FUNCTION::getUserFlags (  )  const [inline]

Examples:
expr/functions.C.

Definition at line 215 of file EXPR.h.

int EV_FUNCTION::isSafe (  )  const [inline]

Definition at line 247 of file EXPR.h.

bool EV_FUNCTION::isThreadSafe (  )  const [inline]

Definition at line 249 of file EXPR.h.

void EV_FUNCTION::setChangeOpRefCallback ( EXPRopChangeRefCallback  cb  )  [inline]

Definition at line 240 of file EXPR.h.

void EV_FUNCTION::setInstanceAllocator ( void *(*)()  alloc,
void(*)(void *)  freer 
) [inline]

Definition at line 228 of file EXPR.h.

static void EV_FUNCTION::setInstanceAllocator ( const char *  function,
void *(*)()  alloc,
void(*)(void *)  freer 
) [static]

void EV_FUNCTION::setOpDependencyCallback ( EXPRopDependencyCallback  cb  )  [inline]

Definition at line 236 of file EXPR.h.


Member Data Documentation

void(* EV_FUNCTION::myCallback)(EV_FUNCTION *me, EV_SYMBOL *result, EV_SYMBOL **args, int thread)

Definition at line 258 of file EXPR.h.

Definition at line 257 of file EXPR.h.

Definition at line 260 of file EXPR.h.


The documentation for this class was generated from the following file:

Generated on Fri May 25 00:10:22 2012 for HDK by  doxygen 1.5.9