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

Micro node for tracking changes to a set of parameters. More...

Inherits DEP_TimedMicroNode.

Public Member Functions

 GusdOP_ParmChangeMicroNode (OP_Parameters &node)
 
void addParm (int parmIdx, int vecIdx=-1)
 Begin tracking the given parm. More...
 
bool updateVals (fpreal t, int thread=SYSgetSTID())
 Update the resolved parm values. More...
 
bool updateIfNeeded (fpreal t, int thread=SYSgetSTID())
 
virtual void update (fpreal t)
 
virtual void clearInputs ()
 Clear our inputs. More...
 

Detailed Description

Micro node for tracking changes to a set of parameters.

This is similar to OP_ParmCache, except that this tracks changes to the resolved* values of parameters, rather than their dirty states.

Only persistent parameters can be tracked. Spare and dynamic parameters (I.e., instances of multi parms) cannot be tracked through this class.

This class is not thread safe!

Definition at line 49 of file OP_ParmChangeMicroNode.h.

Member Function Documentation

void addParm ( int  parmIdx,
int  vecIdx = -1 
)

Begin tracking the given parm.

If vectorIdx is less than zero, all elements of the parm tuple are tracked.

virtual void clearInputs ( )
inlinevirtual

Clear our inputs.

This is overridden to disallow clearing of explicit inputs, which are meant to persist on this micro node.

Definition at line 74 of file OP_ParmChangeMicroNode.h.

bool updateVals ( fpreal  t,
int  thread = SYSgetSTID() 
)

Update the resolved parm values.

Returns
true if any resolved values changed.

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