24 #ifndef _QORE_BUILTINFUNCTIONLIST_H
26 #define _QORE_BUILTINFUNCTIONLIST_H
30 #include <qore/QoreThreadLock.h>
51 DLLLOCAL BuiltinFunctionList& operator=(
const BuiltinFunctionList&);
52 DLLLOCAL
void *
operator new(size_t);
55 DLLLOCAL BuiltinFunctionList();
80 DLLEXPORT
static void add2(
const char *name,
q_func_t f, int64 code_flags = QC_NO_FLAGS, int64 functional_domain =
QDOM_DEFAULT,
const QoreTypeInfo *returnTypeInfo = 0,
unsigned num_params = 0, ...);
101 DLLEXPORT
static int size();
108 DLLEXPORT
static const QoreFunction*
find(
const char *name);
116 #endif // _QORE_BUILTINFUNCTIONLIST_H
static DLLEXPORT void add2(const char *name, q_func_t f, int64 code_flags=QC_NO_FLAGS, int64 functional_domain=QDOM_DEFAULT, const QoreTypeInfo *returnTypeInfo=0, unsigned num_params=0,...)
adds a new builtin function variant to the "Qore" namespace and allows for the return type and parame...
the interface to the global list of all builtin functions in the library
Definition: BuiltinFunctionList.h:47
static DLLEXPORT void add(const char *name, q_func_t f, int functional_domain=QDOM_DEFAULT)
adds a new builtin function variant to the "Qore" namespace
std::vector< AbstractQoreNode * > arg_vec_t
vector of value information for default argument lists
Definition: common.h:203
AbstractQoreNode *(* q_func_t)(const QoreListNode *args, ExceptionSink *xsink)
the type used for builtin function signatures
Definition: common.h:215
DLLEXPORT BuiltinFunctionList builtinFunctions
old interface to the compeltely-removed builtin function list; now functions are stored in namespaces...
static DLLEXPORT const QoreFunction * find(const char *name)
finds a function by its name in the current QoreProgram object; if there is none, then returns 0 ...
static unsigned num_params(const QoreListNode *n)
returns the number of arguments passed to the function
Definition: params.h:46
static DLLEXPORT int size()
always returns 0
static DLLEXPORT void add3(const char *name, q_func_t f, int64 code_flags=QC_NO_FLAGS, int64 functional_domain=QDOM_DEFAULT, const QoreTypeInfo *returnTypeInfo=0, const type_vec_t &typeList=type_vec_t(), const arg_vec_t &defaultArgList=arg_vec_t())
adds a new builtin function variant to the "Qore" and allows for the return type and parameter types ...
std::vector< const QoreTypeInfo * > type_vec_t
vector of type information for parameter lists
Definition: common.h:200
#define QDOM_DEFAULT
the default domain (no domain)
Definition: Restrictions.h:102