1 |
/* |
/* |
2 |
* Copyright (c) 2014-2016 Christian Schoenebeck |
* Copyright (c) 2014-2017 Christian Schoenebeck |
3 |
* |
* |
4 |
* http://www.linuxsampler.org |
* http://www.linuxsampler.org |
5 |
* |
* |
277 |
VMFnResult* exec(VMFnArgs* args); |
VMFnResult* exec(VMFnArgs* args); |
278 |
}; |
}; |
279 |
|
|
280 |
|
/** |
281 |
|
* Implements the built-in array_equal() script function. |
282 |
|
*/ |
283 |
|
class CoreVMFunction_array_equal : public VMIntResultFunction { |
284 |
|
public: |
285 |
|
int minRequiredArgs() const { return 2; } |
286 |
|
int maxAllowedArgs() const { return 2; } |
287 |
|
bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_ARR_EXPR; } |
288 |
|
ExprType_t argType(int iArg) const { return INT_ARR_EXPR; } |
289 |
|
VMFnResult* exec(VMFnArgs* args); |
290 |
|
}; |
291 |
|
|
292 |
|
/** |
293 |
|
* Implements the built-in search() script function. |
294 |
|
*/ |
295 |
|
class CoreVMFunction_search : public VMIntResultFunction { |
296 |
|
public: |
297 |
|
int minRequiredArgs() const { return 2; } |
298 |
|
int maxAllowedArgs() const { return 2; } |
299 |
|
bool acceptsArgType(int iArg, ExprType_t type) const; |
300 |
|
ExprType_t argType(int iArg) const; |
301 |
|
VMFnResult* exec(VMFnArgs* args); |
302 |
|
}; |
303 |
|
|
304 |
|
/** |
305 |
|
* Implements the built-in sort() script function. |
306 |
|
*/ |
307 |
|
class CoreVMFunction_sort : public VMEmptyResultFunction { |
308 |
|
public: |
309 |
|
int minRequiredArgs() const { return 1; } |
310 |
|
int maxAllowedArgs() const { return 2; } |
311 |
|
bool acceptsArgType(int iArg, ExprType_t type) const; |
312 |
|
ExprType_t argType(int iArg) const; |
313 |
|
bool modifiesArg(int iArg) const { return iArg == 0; } |
314 |
|
VMFnResult* exec(VMFnArgs* args); |
315 |
|
}; |
316 |
|
|
317 |
} // namespace LinuxSampler |
} // namespace LinuxSampler |
318 |
|
|
319 |
#endif // LS_COREVMFUNCTIONS_H |
#endif // LS_COREVMFUNCTIONS_H |