#include <Library.h>
Public Member Functions | |
| Library (void) | |
| virtual | ~Library (void) |
| Library (const cl7::string_type &name) | |
| Library (const Library &rhs) | |
| Library & | operator= (const Library &rhs) |
| void | swap (Library &rhs) |
| const cl7::string_type & | get_name () const |
| ExternFunction * | find (const cl7::string_type &function_name) const |
| bool | add (ExternFunction *function) |
| bool | add (const cl7::string_type &definition, BaseFunction::Callback callback) |
| bool | remove (const cl7::string_type &function_name) |
| void | clear () |
Represents a symbol-to-function-map.
| el7::scripting::Library::Library | ( | void | ) |
Default constructor.
| el7::scripting::Library::~Library | ( | void | ) | [virtual] |
Destructor.
| el7::scripting::Library::Library | ( | const cl7::string_type & | name | ) |
Explicit contructor.
| el7::scripting::Library::Library | ( | const Library & | rhs | ) |
Copy contructor.
| bool el7::scripting::Library::add | ( | ExternFunction * | function | ) |
Adds a given function name of the associated function object. If the given function name already exists, the function fails and returns false.
| bool el7::scripting::Library::add | ( | const cl7::string_type & | definition, | |
| BaseFunction::Callback | callback | |||
| ) |
Adds a given function name and a new associated function object. If the given function name already exists, the function fails and returns false. The function name is encoded within the given function definition.
| void el7::scripting::Library::clear | ( | ) |
Removes all function names and associated function objects.
| ExternFunction * el7::scripting::Library::find | ( | const cl7::string_type & | function_name | ) | const |
Searches for the function object of the given name. If the name is not found, the function returns null, a pointer to the function object otherwise.
| const cl7::string_type& el7::scripting::Library::get_name | ( | ) | const [inline] |
Returns the name of this function library.
| bool el7::scripting::Library::remove | ( | const cl7::string_type & | function_name | ) |
Removes the given function name and its corresponding function object.
| void el7::scripting::Library::swap | ( | Library & | rhs | ) |
Swap operation.
1.7.1