All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdExtComputationContext Class Referenceabstract

Interface class that defines the execution environment for the client to run a computation. More...

Public Member Functions

virtual const VtValueGetInputValue (const TfToken &name) const =0
 Obtains the value of an named input to the computation. More...
 
virtual const VtValueGetOptionalInputValuePtr (const TfToken &name) const =0
 Obtains the value of an named input to the computation. More...
 
virtual void SetOutputValue (const TfToken &name, const VtValue &output)=0
 Set the value of the specified output. More...
 
virtual void RaiseComputationError ()=0
 Called to indicate an error occurred while executing a computation so that its output are invalid. More...
 

Detailed Description

Interface class that defines the execution environment for the client to run a computation.

Definition at line 37 of file extComputationContext.h.

Member Function Documentation

virtual const VtValue& GetInputValue ( const TfToken name) const
pure virtual

Obtains the value of an named input to the computation.

The code will issue a coding error and return a empty array if the input is missing or of a different type.

virtual const VtValue* GetOptionalInputValuePtr ( const TfToken name) const
pure virtual

Obtains the value of an named input to the computation.

If the input isn't present or of a different type nullptr will be returned.

virtual void RaiseComputationError ( )
pure virtual

Called to indicate an error occurred while executing a computation so that its output are invalid.

virtual void SetOutputValue ( const TfToken name,
const VtValue output 
)
pure virtual

Set the value of the specified output.


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