9 #ifndef __PDG_EVALUATION_CONTEXT_H__
10 #define __PDG_EVALUATION_CONTEXT_H__
115 bool myParameterError;
118 bool myPreviousParent;
134 bool myPreviousParent;
151 {
return myExpressionAttribs; }
177 static
void setWorkItemCaster(
183 static
void setUsePython(
bool use_python);
198 static
void setGlobalSubItemIndex(
int index,
204 static
void setGlobalWorkItem(
209 static
void setGlobalJobWorkItem(
217 static
void setTimeDependentAttribs(
222 static
void dirtyAllAttribs();
226 static
bool saveGlobalWorkItem(std::ostream &os);
231 static
bool loadGlobalWorkItem(
UT_IStream& is);
235 static const
PDG_WorkItem* globalWorkItem(
bool sub_item);
248 static
bool useTimeDependentAttribs();
251 static
bool isTimeDependent(
260 static
bool activeIsParent(
int thread);
263 static
bool isLocalGenerating(
int thread);
266 static
bool isLocalRuntime(
int thread);
270 static
bool isLocalActive(
int thread);
276 static
bool isLocalCookingPDG(
int thread);
279 static
State localState(
int thread);
282 static
fpreal localEvalTime(
int thread);
285 static const
PDG_Node* localActiveNode(
int thread);
293 static
void setDict(
int thread,
PY_PyObject* locals);
299 static
void updateDict(
int thread,
302 static
void updateDict(
int thread,
305 static
void updateDict(
int thread,
310 static
void updateDict(
int thread,
315 static
void updateDict(
int thread,
320 static
void updateDict(
int thread,
325 static
void resetDict(
int thread);
363 static
bool savePyObjectAttr(
370 static
bool loadPyObjectAttr(
377 static
bool cookWorkItem(
384 static
bool hashPyObjectAttr(
390 static
void updateParameterEvaluation(
400 bool isParent() const;
409 bool hasParameterError() const;
415 bool isGenerating()
const
416 {
return (myState == eStateStatic) ||
417 (myState == eStateDynamic); }
421 {
return (myState == eStateCooking); }
425 {
return (myState == eStateDynamic) ||
426 (myState == eStateCooking) ||
427 (myState == eStateNone); }
432 {
return myState != eStateNone; }
436 {
return myIsLocalize; }
444 bool canDirty(
const PDG_Node* node)
const;
447 bool canDirty()
const;
453 if (myAttributeRecord)
454 myAttributeRecord->record(name);
472 AttribRecordScope* attributeRecord()
const;
479 void setActiveNode(
const PDG_Node* node);
482 void setState(
State state);
491 void setLocalize(
bool localize);
494 void setAttributeRecord(AttribRecordScope* scope);
505 bool include_details,
519 void setLocalDictEntryByScript(
521 const char* py_expression);
523 void setLocalDictEntryByObject(
533 EvaluatorMap myAttributeMap;
534 AttribRecordScope* myAttributeRecord;
539 bool myDictModified : 1;
541 bool myIsLocalize : 1;
542 bool myHasParameterError : 1;
OIIO_API bool has_error()
Is there a pending global error message waiting to be retrieved?
GT_API const UT_StringHolder time
State
Evaluation context state.
std::size_t SYS_HashType
Define the type for hash values.
UT_Function< PY_PyObject *(const PDG_WorkItem *)> WorkItemCaster
Utility function type for converting a PDG_WorkItem* to a PY_PyObject.
**But if you need a result
EvaluationResult
Enumeration of python script evaluation results.
bool isActive() const
Returns true if the context is actively doing PDG work.
Scoped setter of local work item.
The script succeeded without any exceptions.
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
The script encountered an error or exception.
bool isCooking() const
Returns true if the context is in a cooking state.
GLuint const GLchar * name
Scoped block that records PDG attribute evaluations.
std::function< T > UT_Function
**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
bool isRuntime() const
Returns true if the context is in a runtime state.
bool isLocalize() const
Returns true if the context should force file paths to be localized.
UT_ErrorManager::Scope UT_AutoErrorManager
Alias UT_AutoErrorManager as UT_ErrorManager::Scope.
Scoped reset of the thread-local context cooking/generation state.
void recordAttribute(const UT_StringHolder &name)