HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Compiled::Task Class Referenceabstract

#include <SOP_Compiled.h>

Public Member Functions

 Task (const OP_GraphProxy *graph, OP_GraphProxy::NodeIdx noderef, int stateid)
 
virtual ~Task ()
 
void setInput (int inputidx, Task *input)
 
void setExprInput (int inputidx, Task *input)
 
void appendOutput (Task *output)
 
virtual bool validate ()
 
virtual void addNodes (SOP_NodeVerb::ForbiddenNodeMap &nodeset) const
 
virtual void usedNodes (UT_Set< OP_Node * > &usednodes) const
 
virtual void forceUnload (TaskStateArray &state)
 
virtual void clearNodeTimeDependencies ()
 
OP_NodegetNode () const
 
OP_GraphProxy::NodeIdx getNodeIdx () const
 
GU_DetailHandle getDetailHandle (const TaskStateArray &state)
 
bool hasCECache (const TaskStateArray &state) const
 
bool getTimeDependent (const TaskStateArray &state) const
 
void setTimeDependent (TaskStateArray &state, bool timedep)
 
GU_DetailHandle unloadDetailHandle (TaskStateArray &state, bool flushce, UnloadMode unloadmode, UT_ErrorManager &errors, bool allowuncooked=false)
 
void setDetailHandle (TaskStateArray &state, GU_DetailHandle gdh, bool cecache)
 
void setDelayedCook (TaskStateArray &state, SOP_Node *cooknode, const OP_Context &context)
 
void lock (TaskStateArray &state)
 
bool isLocked (TaskStateArray &state) const
 
bool isDirty (const TaskStateArray &state) const
 
void dirty (TaskStateArray &state)
 
void markClean (TaskStateArray &state)
 
bool isParmsDirty (const TaskStateArray &state) const
 
void dirtyParms (TaskStateArray &state)
 
void markParmsClean (TaskStateArray &state)
 
bool dependsOnExprInputs (const TaskStateArray &state) const
 
void clearDependsOnExprInputs (TaskStateArray &state)
 
void setDependsOnExprInputs (TaskStateArray &state)
 
void dirtyChildren (TaskStateArray &state)
 
bool execute (const ExecuteParms &parms)
 
virtual bool doExecute (const ExecuteParms &parms)=0
 
bool executeInputs (const ExecuteParms &parms)
 
bool executeExprInputs (const ExecuteParms &parms)
 
void dump (std::ostream &os) const
 
UT_StringHolder buildName () const
 
void addError (UT_ErrorManager &errors, const char *messsage) const
 
const UT_Array< Task * > & inputs () const
 
const UT_Array< Task * > & exprInputs () const
 
const UT_Array< Task * > & outputs () const
 
int stateId () const
 
const OP_GraphProxygraph () const
 
OP_GraphProxy::NodeIdx nodeIdx () const
 

Protected Member Functions

virtual void dumpSubclass (std::ostream &os) const
 

Protected Attributes

const OP_GraphProxymyGraph
 
OP_GraphProxy::NodeIdx myNodeIdx
 
bool myNodeUnload
 
bool myNodeBypassed
 
bool myNodeLocked
 
UT_Array< OP_GraphProxy::NodeIdxmyNodeInputIds
 
int myStateId
 
UT_Array< Task * > myInputs
 
UT_Array< Task * > myExprInputs
 
UT_Array< Task * > myOutputs
 

Detailed Description

Definition at line 175 of file SOP_Compiled.h.

Constructor & Destructor Documentation

SOP_Compiled::Task::Task ( const OP_GraphProxy graph,
OP_GraphProxy::NodeIdx  noderef,
int  stateid 
)
virtual SOP_Compiled::Task::~Task ( )
virtual

Member Function Documentation

void SOP_Compiled::Task::addError ( UT_ErrorManager errors,
const char *  messsage 
) const
virtual void SOP_Compiled::Task::addNodes ( SOP_NodeVerb::ForbiddenNodeMap nodeset) const
virtual
void SOP_Compiled::Task::appendOutput ( Task output)
UT_StringHolder SOP_Compiled::Task::buildName ( ) const
void SOP_Compiled::Task::clearDependsOnExprInputs ( TaskStateArray state)
inline

Definition at line 241 of file SOP_Compiled.h.

virtual void SOP_Compiled::Task::clearNodeTimeDependencies ( )
virtual
bool SOP_Compiled::Task::dependsOnExprInputs ( const TaskStateArray state) const
inline

Definition at line 240 of file SOP_Compiled.h.

void SOP_Compiled::Task::dirty ( TaskStateArray state)
inline

Definition at line 230 of file SOP_Compiled.h.

void SOP_Compiled::Task::dirtyChildren ( TaskStateArray state)

Dirties ourself and all children until we hit something already dirty.

void SOP_Compiled::Task::dirtyParms ( TaskStateArray state)
inline

Definition at line 238 of file SOP_Compiled.h.

virtual bool SOP_Compiled::Task::doExecute ( const ExecuteParms parms)
pure virtual
void SOP_Compiled::Task::dump ( std::ostream &  os) const
virtual void SOP_Compiled::Task::dumpSubclass ( std::ostream &  os) const
inlineprotectedvirtual

Definition at line 271 of file SOP_Compiled.h.

bool SOP_Compiled::Task::execute ( const ExecuteParms parms)

Computes myself, and chains to any inputs, provided not dirty.

bool SOP_Compiled::Task::executeExprInputs ( const ExecuteParms parms)
bool SOP_Compiled::Task::executeInputs ( const ExecuteParms parms)
const UT_Array<Task *>& SOP_Compiled::Task::exprInputs ( ) const
inline

Definition at line 263 of file SOP_Compiled.h.

virtual void SOP_Compiled::Task::forceUnload ( TaskStateArray state)
virtual
GU_DetailHandle SOP_Compiled::Task::getDetailHandle ( const TaskStateArray state)
inline

Definition at line 201 of file SOP_Compiled.h.

OP_Node* SOP_Compiled::Task::getNode ( ) const
inline

Definition at line 199 of file SOP_Compiled.h.

OP_GraphProxy::NodeIdx SOP_Compiled::Task::getNodeIdx ( ) const
inline

Definition at line 200 of file SOP_Compiled.h.

bool SOP_Compiled::Task::getTimeDependent ( const TaskStateArray state) const
inline

Definition at line 203 of file SOP_Compiled.h.

const OP_GraphProxy* SOP_Compiled::Task::graph ( ) const
inline

Definition at line 267 of file SOP_Compiled.h.

bool SOP_Compiled::Task::hasCECache ( const TaskStateArray state) const
inline

Definition at line 202 of file SOP_Compiled.h.

const UT_Array<Task *>& SOP_Compiled::Task::inputs ( ) const
inline

Definition at line 262 of file SOP_Compiled.h.

bool SOP_Compiled::Task::isDirty ( const TaskStateArray state) const
inline

Definition at line 229 of file SOP_Compiled.h.

bool SOP_Compiled::Task::isLocked ( TaskStateArray state) const
inline

Definition at line 224 of file SOP_Compiled.h.

bool SOP_Compiled::Task::isParmsDirty ( const TaskStateArray state) const
inline

Definition at line 237 of file SOP_Compiled.h.

void SOP_Compiled::Task::lock ( TaskStateArray state)
inline

Definition at line 220 of file SOP_Compiled.h.

void SOP_Compiled::Task::markClean ( TaskStateArray state)
inline

Definition at line 235 of file SOP_Compiled.h.

void SOP_Compiled::Task::markParmsClean ( TaskStateArray state)
inline

Definition at line 239 of file SOP_Compiled.h.

OP_GraphProxy::NodeIdx SOP_Compiled::Task::nodeIdx ( ) const
inline

Definition at line 268 of file SOP_Compiled.h.

const UT_Array<Task *>& SOP_Compiled::Task::outputs ( ) const
inline

Definition at line 264 of file SOP_Compiled.h.

void SOP_Compiled::Task::setDelayedCook ( TaskStateArray state,
SOP_Node cooknode,
const OP_Context context 
)
inline

Definition at line 214 of file SOP_Compiled.h.

void SOP_Compiled::Task::setDependsOnExprInputs ( TaskStateArray state)
inline

Definition at line 242 of file SOP_Compiled.h.

void SOP_Compiled::Task::setDetailHandle ( TaskStateArray state,
GU_DetailHandle  gdh,
bool  cecache 
)
inline

Definition at line 207 of file SOP_Compiled.h.

void SOP_Compiled::Task::setExprInput ( int  inputidx,
Task input 
)
void SOP_Compiled::Task::setInput ( int  inputidx,
Task input 
)
void SOP_Compiled::Task::setTimeDependent ( TaskStateArray state,
bool  timedep 
)
inline

Definition at line 204 of file SOP_Compiled.h.

int SOP_Compiled::Task::stateId ( ) const
inline

Definition at line 265 of file SOP_Compiled.h.

GU_DetailHandle SOP_Compiled::Task::unloadDetailHandle ( TaskStateArray state,
bool  flushce,
UnloadMode  unloadmode,
UT_ErrorManager errors,
bool  allowuncooked = false 
)
virtual void SOP_Compiled::Task::usedNodes ( UT_Set< OP_Node * > &  usednodes) const
virtual
virtual bool SOP_Compiled::Task::validate ( )
virtual

Member Data Documentation

UT_Array<Task *> SOP_Compiled::Task::myExprInputs
protected

Definition at line 281 of file SOP_Compiled.h.

const OP_GraphProxy* SOP_Compiled::Task::myGraph
protected

Definition at line 273 of file SOP_Compiled.h.

UT_Array<Task *> SOP_Compiled::Task::myInputs
protected

Definition at line 280 of file SOP_Compiled.h.

bool SOP_Compiled::Task::myNodeBypassed
protected

Definition at line 276 of file SOP_Compiled.h.

OP_GraphProxy::NodeIdx SOP_Compiled::Task::myNodeIdx
protected

Definition at line 274 of file SOP_Compiled.h.

UT_Array<OP_GraphProxy::NodeIdx> SOP_Compiled::Task::myNodeInputIds
protected

Definition at line 278 of file SOP_Compiled.h.

bool SOP_Compiled::Task::myNodeLocked
protected

Definition at line 277 of file SOP_Compiled.h.

bool SOP_Compiled::Task::myNodeUnload
protected

Definition at line 275 of file SOP_Compiled.h.

UT_Array<Task *> SOP_Compiled::Task::myOutputs
protected

Definition at line 282 of file SOP_Compiled.h.

int SOP_Compiled::Task::myStateId
protected

Definition at line 279 of file SOP_Compiled.h.


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