#include <BuiltinFunctionList.h>
Static Public Member Functions | |
static DLLEXPORT void | add (const char *name, q_func_t f, int typ=QDOM_DEFAULT) |
adds a new builtin function to the list | |
static DLLEXPORT class BuiltinFunction * | find (const char *name) |
finds a function by its name | |
static DLLEXPORT int | size () |
returns the number of functions in the hash |
The object is thread-safe; a hash or hash-map is used for lookups. There is only one of these, therefore we have static members and methods.
static DLLEXPORT void BuiltinFunctionList::add | ( | const char * | name, | |
q_func_t | f, | |||
int | typ = QDOM_DEFAULT | |||
) | [static] |
adds a new builtin function to the list
name | the name of the function | |
f | a pointer to the actual C++ function to be executed when the function is called | |
typ | a capability mask of the function so that access to the function can be restricted if necessary |
static DLLEXPORT class BuiltinFunction* BuiltinFunctionList::find | ( | const char * | name | ) | [static] |
finds a function by its name
static DLLEXPORT int BuiltinFunctionList::size | ( | ) | [static] |
returns the number of functions in the hash