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; } |
105 |
std::vector<ExpressionRef> args; |
std::vector<ExpressionRef> args; |
106 |
void add(ExpressionRef arg) { args.push_back(arg); } |
void add(ExpressionRef arg) { args.push_back(arg); } |
107 |
void dump(int level = 0); |
void dump(int level = 0); |
108 |
int argsCount() const { return args.size(); } |
int argsCount() const { return (int) args.size(); } |
109 |
VMExpr* arg(int i) { return (i >= 0 && i < argsCount()) ? &*args.at(i) : NULL; } |
VMExpr* arg(int i) { return (i >= 0 && i < argsCount()) ? &*args.at(i) : NULL; } |
110 |
bool isPolyphonic() const; |
bool isPolyphonic() const; |
111 |
}; |
}; |
158 |
public: |
public: |
159 |
BuiltInIntVariable(const String& name, VMIntRelPtr* ptr); |
BuiltInIntVariable(const String& name, VMIntRelPtr* ptr); |
160 |
bool isAssignable() const OVERRIDE { return !ptr->readonly; } |
bool isAssignable() const OVERRIDE { return !ptr->readonly; } |
161 |
void assign(Expression* expr); |
void assign(Expression* expr) OVERRIDE; |
162 |
int evalInt(); |
int evalInt() OVERRIDE; |
163 |
void dump(int level = 0); |
void dump(int level = 0) OVERRIDE; |
164 |
}; |
}; |
165 |
typedef Ref<BuiltInIntVariable,Node> BuiltInIntVariableRef; |
typedef Ref<BuiltInIntVariable,Node> BuiltInIntVariableRef; |
166 |
|
|
354 |
public: |
public: |
355 |
FunctionCall(const char* function, ArgsRef args, VMFunction* fn) : |
FunctionCall(const char* function, ArgsRef args, VMFunction* fn) : |
356 |
functionName(function), args(args), fn(fn) { } |
functionName(function), args(args), fn(fn) { } |
357 |
void dump(int level = 0); |
void dump(int level = 0) OVERRIDE; |
358 |
StmtFlags_t exec(); |
StmtFlags_t exec() OVERRIDE; |
359 |
int evalInt(); |
int evalInt() OVERRIDE; |
360 |
String evalStr(); |
VMIntArrayExpr* asIntArray() const OVERRIDE; |
361 |
bool isConstExpr() const { return false; } |
String evalStr() OVERRIDE; |
362 |
ExprType_t exprType() const; |
bool isConstExpr() const OVERRIDE { return false; } |
363 |
String evalCastToStr(); |
ExprType_t exprType() const OVERRIDE; |
364 |
bool isPolyphonic() const { return args->isPolyphonic(); } |
String evalCastToStr() OVERRIDE; |
365 |
|
bool isPolyphonic() const OVERRIDE { return args->isPolyphonic(); } |
366 |
protected: |
protected: |
367 |
VMFnResult* execVMFn(); |
VMFnResult* execVMFn(); |
368 |
}; |
}; |
422 |
int evalInt() { return 0; } |
int evalInt() { return 0; } |
423 |
EventHandler* eventHandlerByName(const String& name) const; |
EventHandler* eventHandlerByName(const String& name) const; |
424 |
EventHandler* eventHandler(uint index) const; |
EventHandler* eventHandler(uint index) const; |
425 |
inline uint size() const { return args.size(); } |
inline uint size() const { return (int) args.size(); } |
426 |
bool isPolyphonic() const; |
bool isPolyphonic() const; |
427 |
}; |
}; |
428 |
typedef Ref<EventHandlers,Node> EventHandlersRef; |
typedef Ref<EventHandlers,Node> EventHandlersRef; |