19 #ifndef __CH_Expression_h__
20 #define __CH_Expression_h__
42 int64 getMemoryUsage(
bool inclusive)
const;
44 void save(std::ostream &os,
int binary,
bool compiled)
const;
47 const char *getExpression()
const;
48 void setExpression(
const char *expr,
50 unsigned getExpressionFlag()
const;
65 void unresolveLocalVars(
int thread);
67 unsigned isCompiled()
const;
68 bool isPureCompiled()
const;
75 void dirtyExprCache();
77 bool modified()
const;
82 bool usesInValue()
const;
83 bool usesOutValue()
const;
84 bool usesValues()
const;
85 bool usesSlopes()
const;
86 bool usesAccels()
const;
87 bool usesKnots()
const;
90 void buildOpDependencies(
void *ref_id,
int thread);
91 int changeOpRef(
const char *new_fullpath,
92 const char *old_fullpath,
94 const char *chan_name,
95 const char *old_chan_name,
98 void *getSingleFunctionInstanceData(
101 int findString(
const char *str,
bool fullword,
102 bool usewildcards)
const;
103 int changeString(
const char *from,
const char *to,
104 bool fullword,
int thread);
106 const char *getReferencePath()
const;
107 void setReferencePath(
const char *
path);
109 void forceStringType();
125 operator const char *()
const {
return getExpression(); }
131 static void addExprFlags(
int flags,
int thread);
137 static int &exprFlags();
149 void changeExpr(const
char *
source,
int thread);
158 d.
save(os, 0,
false);
CE_API bool evaluate(const CE_OSDRefinement &topo, const CE_OSDEvaluator &eval, const cl::Buffer &coarse, const CE_OSDPatchCoords &patch_coords, const CE_FloatArray *refined_data, cl::Buffer &out, cl::Buffer *du, cl::Buffer *dv)
bool usesOutValue() const
#define SYS_DEPRECATED(__V__)
CH_Expression & operator=(const CH_Expression &from)
void setFlagsUnsafe(unsigned int flags)
const GLuint GLenum const void * binary
GLsizei const GLchar *const * path
**But if you need a result
GLsizei GLsizei GLchar * source
unsigned getExpressionFlag() const
bool hasFlag(unsigned int bit) const
CH_ExprLanguage getLanguage() const
**Note that the tasks the is the thread number *for the or if it s being executed by a non pool thread(this *can happen in cases where the whole pool is occupied and the calling *thread contributes to running the work load).**Thread pool.Have fun
void save(std::ostream &os, bool binary) const
Save string to stream. Saves as binary if binary is true.
CH_Expression(const CH_Expression &from)
void setExpressionFlag(int flag)
const char * getExpression() const
unsigned int getFlags() const