The ExternalFunction class serves as the base of subclasses that represent the implementation/body of external functions. More...
#include <zorba/function.h>
Public Types | |
typedef std::vector < ItemSequence * > | Arguments_t |
Public Member Functions | |
virtual String | getLocalName () const =0 |
virtual String | getURI () const =0 |
virtual bool | isContextual () const =0 |
virtual | ~ExternalFunction () |
The ExternalFunction class serves as the base of subclasses that represent the implementation/body of external functions.
Instances of ExternalFunction must provide an evaluate method that serves as the implementation of the function. During its evaluation, an external function may or may not need to access the static and/or dynamic context of the invoking XQuery module. If the function implementation does need to access either context, the function is referred to as "contextual"; otherwise, it is "non-contextual".
Definition at line 148 of file function.h.
typedef std::vector<ItemSequence*> zorba::ExternalFunction::Arguments_t |
Definition at line 151 of file function.h.
virtual zorba::ExternalFunction::~ExternalFunction | ( | ) | [inline, virtual] |
Definition at line 154 of file function.h.
virtual String zorba::ExternalFunction::getLocalName | ( | ) | const [pure virtual] |
virtual String zorba::ExternalFunction::getURI | ( | ) | const [pure virtual] |
virtual bool zorba::ExternalFunction::isContextual | ( | ) | const [pure virtual] |
Implemented in zorba::NonContextualExternalFunction, and zorba::ContextualExternalFunction.