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

#include <CH_Expression.h>

Public Member Functions

 CH_Expression (const char *expr, CH_ExprLanguage language)
 
 ~CH_Expression ()
 
int64 getMemoryUsage (bool inclusive) const
 
void save (std::ostream &os, int binary, bool compiled) const
 
bool load (UT_IStream &is)
 
const char * getExpression () const
 
void setExpression (const char *expr, CH_ExprLanguage language)
 
unsigned getExpressionFlag () const
 
void setExpressionFlag (int flag)
 
CH_ExprLanguage getLanguage () const
 
void setLanguage (CH_ExprLanguage language)
 
void unresolveLocalVars (int thread)
 
unsigned isCompiled () const
 
bool isPureCompiled () const
 
fpreal evaluate (int thread)
 Evaluate as a fpreal. More...
 
void evaluateString (UT_String &result, int thread)
 Evaluate as a string. More...
 
void dirtyExprCache ()
 
bool modified () const
 
void buildOpDependencies (void *ref_id, int thread)
 
int changeOpRef (const char *new_fullpath, const char *old_fullpath, const char *old_cwd, const char *chan_name, const char *old_chan_name, int thread)
 
voidgetSingleFunctionInstanceData (EV_FUNCTION *func, int thread, UT_String &argument)
 
int findString (const char *str, bool fullword, bool usewildcards) const
 
int changeString (const char *from, const char *to, bool fullword, int thread)
 
const char * getReferencePath () const
 
void setReferencePath (const char *path)
 
void forceStringType ()
 
 CH_Expression (const CH_Expression &from)
 
CH_Expressionoperator= (const CH_Expression &from)
 
 operator const char * () const
 
bool usesInValue () const
 
bool usesOutValue () const
 
bool usesValues () const
 
bool usesSlopes () const
 
bool usesAccels () const
 
bool usesKnots () const
 

Static Public Member Functions

static void addExprFlags (int flags, int thread)
 
static intexprFlags ()
 
static void setTimeDependency ()
 

Friends

std::ostream & operator<< (std::ostream &os, const CH_Expression &d)
 

Detailed Description

Definition at line 35 of file CH_Expression.h.

Constructor & Destructor Documentation

CH_Expression::CH_Expression ( const char *  expr,
CH_ExprLanguage  language 
)
CH_Expression::~CH_Expression ( )
CH_Expression::CH_Expression ( const CH_Expression from)
inline

Definition at line 110 of file CH_Expression.h.

Member Function Documentation

static void CH_Expression::addExprFlags ( int  flags,
int  thread 
)
static
void CH_Expression::buildOpDependencies ( void ref_id,
int  thread 
)
int CH_Expression::changeOpRef ( const char *  new_fullpath,
const char *  old_fullpath,
const char *  old_cwd,
const char *  chan_name,
const char *  old_chan_name,
int  thread 
)
int CH_Expression::changeString ( const char *  from,
const char *  to,
bool  fullword,
int  thread 
)
void CH_Expression::dirtyExprCache ( )
fpreal CH_Expression::evaluate ( int  thread)

Evaluate as a fpreal.

void CH_Expression::evaluateString ( UT_String result,
int  thread 
)

Evaluate as a string.

static int& CH_Expression::exprFlags ( )
static
int CH_Expression::findString ( const char *  str,
bool  fullword,
bool  usewildcards 
) const
void CH_Expression::forceStringType ( )
const char* CH_Expression::getExpression ( ) const
unsigned CH_Expression::getExpressionFlag ( ) const
inline

Definition at line 163 of file CH_Expression.h.

CH_ExprLanguage CH_Expression::getLanguage ( ) const
int64 CH_Expression::getMemoryUsage ( bool  inclusive) const
const char* CH_Expression::getReferencePath ( ) const
void* CH_Expression::getSingleFunctionInstanceData ( EV_FUNCTION func,
int  thread,
UT_String argument 
)
unsigned CH_Expression::isCompiled ( ) const
bool CH_Expression::isPureCompiled ( ) const
bool CH_Expression::load ( UT_IStream is)
bool CH_Expression::modified ( ) const
inline

Definition at line 175 of file CH_Expression.h.

CH_Expression::operator const char * ( ) const
inline

Definition at line 124 of file CH_Expression.h.

CH_Expression& CH_Expression::operator= ( const CH_Expression from)
inline

Definition at line 116 of file CH_Expression.h.

void CH_Expression::save ( std::ostream &  os,
int  binary,
bool  compiled 
) const
void CH_Expression::setExpression ( const char *  expr,
CH_ExprLanguage  language 
)
void CH_Expression::setExpressionFlag ( int  flag)
inline

Definition at line 169 of file CH_Expression.h.

void CH_Expression::setLanguage ( CH_ExprLanguage  language)
void CH_Expression::setReferencePath ( const char *  path)
static void CH_Expression::setTimeDependency ( )
static
void CH_Expression::unresolveLocalVars ( int  thread)
bool CH_Expression::usesAccels ( ) const
inline

These methods checks the flags, you must evaluate the expression first.

Definition at line 205 of file CH_Expression.h.

bool CH_Expression::usesInValue ( ) const
inline

These methods checks the flags, you must evaluate the expression first.

Definition at line 181 of file CH_Expression.h.

bool CH_Expression::usesKnots ( ) const
inline

These methods checks the flags, you must evaluate the expression first.

Definition at line 211 of file CH_Expression.h.

bool CH_Expression::usesOutValue ( ) const
inline

These methods checks the flags, you must evaluate the expression first.

Definition at line 187 of file CH_Expression.h.

bool CH_Expression::usesSlopes ( ) const
inline

These methods checks the flags, you must evaluate the expression first.

Definition at line 199 of file CH_Expression.h.

bool CH_Expression::usesValues ( ) const
inline

These methods checks the flags, you must evaluate the expression first.

Definition at line 193 of file CH_Expression.h.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CH_Expression d 
)
friend

Definition at line 155 of file CH_Expression.h.


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