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

#include <OP_InputChangeHelper.h>

Public Member Functions

void resetChangedSourceFlags ()
 Mark all inputs as dirty. This is the default. More...
 
void inputConnectChanged (const OP_Node &node, int which_input)
 
bool useInput (const OP_Node &node, unsigned idx, bool &changed, bool force)
 
bool checkChangedSourceFlags (const OP_Node &node, unsigned idx, bool &changed)
 
int64 getMemoryUsage (bool inclusive) const
 

Detailed Description

Definition at line 34 of file OP_InputChangeHelper.h.

Member Function Documentation

bool OP_InputChangeHelper::checkChangedSourceFlags ( const OP_Node node,
unsigned  idx,
bool &  changed 
)
inline

Similar to useInput() except it doesn't affect the flags. It's used to simply query whether the given input has changed. Returns false if there's errors on the input. "changed" is updated.

Definition at line 83 of file OP_InputChangeHelper.h.

int64 OP_InputChangeHelper::getMemoryUsage ( bool  inclusive) const
inline

Definition at line 99 of file OP_InputChangeHelper.h.

void OP_InputChangeHelper::inputConnectChanged ( const OP_Node node,
int  which_input 
)
inline

Mark the given input as dirty. NOTE: Users of this class should override OP_Node::inputConnectChanged() to call this.

Definition at line 47 of file OP_InputChangeHelper.h.

void OP_InputChangeHelper::resetChangedSourceFlags ( )
inline

Mark all inputs as dirty. This is the default.

Definition at line 39 of file OP_InputChangeHelper.h.

bool OP_InputChangeHelper::useInput ( const OP_Node node,
unsigned  idx,
bool &  changed,
bool  force 
)
inline

Use the given input on the node. This updates source flags to mark the input as now clean, returning whether the input changes. If force is true, then we treat the input as always dirty. Returns false if input has errors and we'll add an input error in that case.

Definition at line 60 of file OP_InputChangeHelper.h.


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