ardour
Public Types | Public Member Functions | Public Attributes | List of all members
ARDOUR::Transform::Operation Struct Reference

#include <transform.h>

Public Types

enum  Operator {
  PUSH, ADD, SUB, MULT,
  DIV, MOD
}
 

Public Member Functions

 Operation (Operator o, const Value &a=Value())
 
void eval (Context &context) const
 

Public Attributes

Operator op
 
Value arg
 

Detailed Description

An operation to transform the running result.

All operations except PUSH take their arguments from the stack, and put the result back on the stack.

Definition at line 103 of file transform.h.

Member Enumeration Documentation

Enumerator
PUSH 

Push argument to the stack.

ADD 

Add top two values.

SUB 

Subtract top from second-top.

MULT 

Multiply top two values.

DIV 

Divide second-top by top.

MOD 

Modulus (division remainder)

Definition at line 104 of file transform.h.

Constructor & Destructor Documentation

ARDOUR::Transform::Operation::Operation ( Operator  o,
const Value a = Value() 
)
inline

Definition at line 113 of file transform.h.

Member Function Documentation

void ARDOUR::Transform::Operation::eval ( Context context) const

Apply operation.

Definition at line 70 of file transform.cc.

Member Data Documentation

Value ARDOUR::Transform::Operation::arg

Definition at line 119 of file transform.h.

Operator ARDOUR::Transform::Operation::op

Definition at line 118 of file transform.h.


The documentation for this struct was generated from the following files: