All Classes Namespaces Functions Variables Enumerations Enumerator Modules Pages
Public Member Functions | List of all members
AssignableObject Class Referenceabstract
Inheritance diagram for AssignableObject:
DspInstance ScriptingObjects::ScriptingModulator

Public Member Functions

virtual void assign (const int index, var newValue)=0
 
virtual var getAssignedValue (int index) const =0
 
virtual int getCachedIndex (const var &indexExpression) const =0
 

Detailed Description

A interface class for objects that can be used with the [] operator in Javascript.

It uses a cached look up index on compilation to accelerate the look up.

Member Function Documentation

virtual void assign ( const int  index,
var  newValue 
)
pure virtual

Assign the value to the specified index. The parameter passed in must relate to the index created with getCachedIndex.

virtual var getAssignedValue ( int  index) const
pure virtual

Return the value for the specified index. The parameter passed in must relate to the index created with getCachedIndex.

virtual int getCachedIndex ( const var &  indexExpression) const
pure virtual

Overwrite this and return an index that can be used to look up the value when the script is executed.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.