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

#include <OP_Caller.h>

+ Inheritance diagram for OP_Caller:

Classes

class  NodeInterest
 

Public Member Functions

 OP_Caller (OP_Node *node, const DEP_ContextOptionsStack *context_options_stack, DEP_ContextOptionsReadHandle context_options)
 
 OP_Caller (OP_Node *node, DEP_MicroNode *micronode, const DEP_ContextOptionsStack *context_options_stack, DEP_ContextOptionsReadHandle context_options)
 
 ~OP_Caller () override
 
const DEP_ContextOptionsStackgetContextOptionsStack () const
 Return the options associated with the calling context. More...
 
DEP_ContextOptionsReadHandle getContextOptions () const
 Return the options associated with the calling context. More...
 
void referenceOtherOp (int opid, UT_OpCallee *cache, bool flaginterest, bool spareinterest=false) override
 
void referenceOtherParameter (int opid, int pi, int vi, bool add_timedep=true) override
 Reference a specific parameter. More...
 
void clearReferences ()
 Clear all references (notifying callee's about completion. More...
 
void addDependencies ()
 
bool ignoreTimeDep () const
 
void setIgnoreTimeDep ()
 
int getOpId () override
 
OP_NodegetNode ()
 
- Public Member Functions inherited from UT_OpCaller
 UT_OpCaller ()
 
virtual ~UT_OpCaller ()
 
void notifyCalleeWhenDone (UT_OpCallee *cache)
 
bool willNotifyCalleeWhenDone (UT_OpCallee *cache)
 Checks if this caller will notify the given callee when done with VEX. More...
 

Protected Types

typedef UT_ConcurrentVector
< NodeInterest
ListType
 

Protected Attributes

ListType myInterests
 
OP_NodemyNode
 
DEP_MicroNodemyMicroNode
 
const DEP_ContextOptionsStackmyContextOptionsStack
 
DEP_ContextOptionsReadHandle myContextOptions
 
bool myIgnoreTimeDep
 

Additional Inherited Members

- Protected Member Functions inherited from UT_OpCaller
void notifyCalleesThatDone ()
 Notify the callees that the caller object is done with VEX. More...
 

Detailed Description

Examples:
SOP/SOP_PrimVOP.C, and SOP/SOP_PrimVOP.h.

Definition at line 23 of file OP_Caller.h.

Member Typedef Documentation

Definition at line 124 of file OP_Caller.h.

Constructor & Destructor Documentation

OP_Caller::OP_Caller ( OP_Node node,
const DEP_ContextOptionsStack context_options_stack,
DEP_ContextOptionsReadHandle  context_options 
)
OP_Caller::OP_Caller ( OP_Node node,
DEP_MicroNode micronode,
const DEP_ContextOptionsStack context_options_stack,
DEP_ContextOptionsReadHandle  context_options 
)
OP_Caller::~OP_Caller ( )
override

Member Function Documentation

void OP_Caller::addDependencies ( )

Add operator dependencies – the user should ensure that this is called in a thread-safe fashion.

Note
This is called automatically from the destructor.
void OP_Caller::clearReferences ( )

Clear all references (notifying callee's about completion.

DEP_ContextOptionsReadHandle OP_Caller::getContextOptions ( ) const
inline

Return the options associated with the calling context.

Examples:
SOP/SOP_PrimVOP.C.

Definition at line 48 of file OP_Caller.h.

const DEP_ContextOptionsStack* OP_Caller::getContextOptionsStack ( ) const
inline

Return the options associated with the calling context.

Examples:
SOP/SOP_PrimVOP.C.

Definition at line 44 of file OP_Caller.h.

OP_Node* OP_Caller::getNode ( )
inline

Get the calling node (i.e. the node being cooked) This CAN be nullptr, for example if an explicit micronode is the dependency, as can happen in compiled SOP networks.

Definition at line 39 of file OP_Caller.h.

int OP_Caller::getOpId ( )
overridevirtual

Get the calling node (i.e. the node being cooked) This CAN be nullptr, for example if an explicit micronode is the dependency, as can happen in compiled SOP networks.

Implements UT_OpCaller.

bool OP_Caller::ignoreTimeDep ( ) const

Flag the caller to ignore time dependencies in addDependencies. Used when cooking a channel time range in VEXCHOP

void OP_Caller::referenceOtherOp ( int  opid,
UT_OpCallee cache,
bool  flaginterest,
bool  spareinterest = false 
)
overridevirtual

Tell the calling node that they refer to the data for the other op If the callee is not NULL, it's doneWithOp() method will be called after the caller is finished with the node.

Implements UT_OpCaller.

void OP_Caller::referenceOtherParameter ( int  opid,
int  pi,
int  vi,
bool  add_timedep = true 
)
overridevirtual

Reference a specific parameter.

Implements UT_OpCaller.

void OP_Caller::setIgnoreTimeDep ( )

Member Data Documentation

DEP_ContextOptionsReadHandle OP_Caller::myContextOptions
protected

Definition at line 130 of file OP_Caller.h.

const DEP_ContextOptionsStack* OP_Caller::myContextOptionsStack
protected

Definition at line 129 of file OP_Caller.h.

bool OP_Caller::myIgnoreTimeDep
protected

Definition at line 131 of file OP_Caller.h.

ListType OP_Caller::myInterests
protected

Definition at line 126 of file OP_Caller.h.

DEP_MicroNode* OP_Caller::myMicroNode
protected

Definition at line 128 of file OP_Caller.h.

OP_Node* OP_Caller::myNode
protected

Definition at line 127 of file OP_Caller.h.


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