1 |
/* -*- c++ -*- |
/* -*- c++ -*- |
2 |
* |
* |
3 |
* Copyright (c) 2014 - 2016 Christian Schoenebeck and Andreas Persson |
* Copyright (c) 2014 - 2017 Christian Schoenebeck and Andreas Persson |
4 |
* |
* |
5 |
* http://www.linuxsampler.org |
* http://www.linuxsampler.org |
6 |
* |
* |
63 |
}; |
}; |
64 |
typedef Ref<IntExpr,Node> IntExprRef; |
typedef Ref<IntExpr,Node> IntExprRef; |
65 |
|
|
66 |
|
/*class IntArrayExpr : virtual public VMIntArrayExpr, virtual public Expression { |
67 |
|
public: |
68 |
|
ExprType_t exprType() const { return INT_ARR_EXPR; } |
69 |
|
String evalCastToStr(); |
70 |
|
}; |
71 |
|
typedef Ref<IntArrayExpr,Node> IntArrayExprRef;*/ |
72 |
|
|
73 |
class StringExpr : virtual public VMStringExpr, virtual public Expression { |
class StringExpr : virtual public VMStringExpr, virtual public Expression { |
74 |
public: |
public: |
75 |
ExprType_t exprType() const { return STRING_EXPR; } |
ExprType_t exprType() const { return STRING_EXPR; } |
340 |
bool isAssignable() const OVERRIDE { return dynVar->isAssignable(); } |
bool isAssignable() const OVERRIDE { return dynVar->isAssignable(); } |
341 |
bool isPolyphonic() const OVERRIDE { return false; } |
bool isPolyphonic() const OVERRIDE { return false; } |
342 |
void assign(Expression* expr) OVERRIDE { dynVar->assignExpr(expr); } |
void assign(Expression* expr) OVERRIDE { dynVar->assignExpr(expr); } |
343 |
|
VMIntArrayExpr* asIntArray() const OVERRIDE { return dynVar->asIntArray(); } |
344 |
int evalInt() OVERRIDE; |
int evalInt() OVERRIDE; |
345 |
String evalStr() OVERRIDE; |
String evalStr() OVERRIDE; |
346 |
String evalCastToStr() OVERRIDE; |
String evalCastToStr() OVERRIDE; |
355 |
public: |
public: |
356 |
FunctionCall(const char* function, ArgsRef args, VMFunction* fn) : |
FunctionCall(const char* function, ArgsRef args, VMFunction* fn) : |
357 |
functionName(function), args(args), fn(fn) { } |
functionName(function), args(args), fn(fn) { } |
358 |
void dump(int level = 0); |
void dump(int level = 0) OVERRIDE; |
359 |
StmtFlags_t exec(); |
StmtFlags_t exec() OVERRIDE; |
360 |
int evalInt(); |
int evalInt() OVERRIDE; |
361 |
String evalStr(); |
VMIntArrayExpr* asIntArray() const OVERRIDE; |
362 |
bool isConstExpr() const { return false; } |
String evalStr() OVERRIDE; |
363 |
ExprType_t exprType() const; |
bool isConstExpr() const OVERRIDE { return false; } |
364 |
String evalCastToStr(); |
ExprType_t exprType() const OVERRIDE; |
365 |
bool isPolyphonic() const { return args->isPolyphonic(); } |
String evalCastToStr() OVERRIDE; |
366 |
|
bool isPolyphonic() const OVERRIDE { return args->isPolyphonic(); } |
367 |
protected: |
protected: |
368 |
VMFnResult* execVMFn(); |
VMFnResult* execVMFn(); |
369 |
}; |
}; |