zorba::ExternalFunction

#include <zorba/function.h>

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".

Public Types

std::vector< ItemSequence * >

Arguments_t

Public Functions

String

getLocalName() const =0

String

getURI() const =0

bool

isContextual() const =0

~ExternalFunction()

Protected Functions

Item

getItem(Arguments_t const &args, unsigned pos) const

Public Types

Arguments_t

std::vector< ItemSequence * > Arguments_t

Public Functions

getLocalName

String getLocalName() const =0

Returns

The local name of the function QName

getURI

String getURI() const =0

Returns

The namespace URI of the function QName

isContextual

bool isContextual() const =0

Returns

True if the external function is contextual; false otherwise.

~ExternalFunction

 ~ExternalFunction()

Protected Functions

getItem

Item getItem(Arguments_t const &args, unsigned pos) const