BuiltinFunctionList Class Reference

the container that manages all builtin functions in the library More...

#include <BuiltinFunctionList.h>

List of all members.

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


Detailed Description

the container that manages all builtin functions in the library

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.


Member Function Documentation

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

Parameters:
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

Returns:
a pointer to the function found

static DLLEXPORT int BuiltinFunctionList::size (  )  [static]

returns the number of functions in the hash

Returns:
the number of functions in the hash


The documentation for this class was generated from the following file:

Generated on Mon Oct 26 09:09:49 2009 for Qore Programming Language by  doxygen 1.5.6