HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EV_FUNCTION Class Reference

#include <EXPR.h>

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, EXPRfuncCallback callback=0, EXPRopDependencyCallback dependCB=0, EXPRopChangeRefCallback changeOpRefCB=0, int is_safe=1, bool is_threadsafe=false)
 
virtual ~EV_FUNCTION ()
 
virtual int64 getMemoryUsage (bool inclusive) const
 
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 setInstanceAllocator (void *(*alloc)(), void(*freer)(void *))
 
void * allocInstanceData ()
 
void freeInstanceData (void *d)
 
void setOpDependencyCallback (EXPRopDependencyCallback cb)
 
void setChangeOpRefCallback (EXPRopChangeRefCallback cb)
 
int isSafe () const
 
void setIsThreadSafe (bool flag)
 
bool isThreadSafe () const
 

Static Public Member Functions

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

Public Attributes

EXPRfuncCallback myCallback
 
EXPRopDependencyCallback myDependCallback
 
EXPRopChangeRefCallback myChangeOpRefCallback
 

Detailed Description

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

Definition at line 235 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,
EXPRfuncCallback  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 272 of file EXPR.h.

void EV_FUNCTION::freeInstanceData ( void *  d)
inline

Definition at line 273 of file EXPR.h.

int EV_FUNCTION::getArgType ( int  i) const
inline

Definition at line 259 of file EXPR.h.

const int* EV_FUNCTION::getArgTypes ( ) const
inline

Definition at line 258 of file EXPR.h.

const char* EV_FUNCTION::getDSOLocation ( ) const
inline

Definition at line 260 of file EXPR.h.

static void* EV_FUNCTION::getInstanceData ( int  thread)
static

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

virtual int64 EV_FUNCTION::getMemoryUsage ( bool  inclusive) const
virtual
const char* EV_FUNCTION::getName ( ) const
inline
Examples:
expr/channel.C, and expr/functions.C.

Definition at line 255 of file EXPR.h.

int EV_FUNCTION::getNArgs ( ) const
inline

Definition at line 256 of file EXPR.h.

int EV_FUNCTION::getResultType ( ) const
inline

Definition at line 257 of file EXPR.h.

unsigned EV_FUNCTION::getUserFlags ( ) const
inline
Examples:
expr/functions.C.

Definition at line 254 of file EXPR.h.

int EV_FUNCTION::isSafe ( ) const
inline

Definition at line 286 of file EXPR.h.

bool EV_FUNCTION::isThreadSafe ( ) const
inline

Definition at line 289 of file EXPR.h.

void EV_FUNCTION::setChangeOpRefCallback ( EXPRopChangeRefCallback  cb)
inline

Definition at line 279 of file EXPR.h.

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

Definition at line 267 of file EXPR.h.

void EV_FUNCTION::setIsThreadSafe ( bool  flag)
inline

Definition at line 288 of file EXPR.h.

void EV_FUNCTION::setOpDependencyCallback ( EXPRopDependencyCallback  cb)
inline

Definition at line 275 of file EXPR.h.

Member Data Documentation

EXPRfuncCallback EV_FUNCTION::myCallback

Definition at line 292 of file EXPR.h.

EXPRopChangeRefCallback EV_FUNCTION::myChangeOpRefCallback

Definition at line 294 of file EXPR.h.

EXPRopDependencyCallback EV_FUNCTION::myDependCallback

Definition at line 293 of file EXPR.h.


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