zorba::ContextualExternalFunction

#include <zorba/function.h>

Inherited from: zorba::ExternalFunction

The ContextualExternalFunction class serves as the base of subclasses that represent the implementation of contextual external functions. For each external function, an application must provide a concrete subclass of this class and "store" an instance of the subclass inside an ExternalModule object, as described here.

Public Functions

ItemSequence_t

evaluate(const Arguments_t &, const StaticContext *, const DynamicContext *) const =0

String

getLocalName() const =0

String

getURI() const =0

bool

isContextual() const

~ContextualExternalFunction()

Public Types

std::vector< ItemSequence * >

Arguments_t

Protected Functions

Item

getItem(Arguments_t const &args, unsigned pos) const

Public Functions

evaluate

ItemSequence_t evaluate(const Arguments_t &, const StaticContext *, const DynamicContext *) const =0

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

Returns

True if the external function is contextual; false otherwise.

~ContextualExternalFunction

 ~ContextualExternalFunction()

Public Types

Arguments_t

std::vector< ItemSequence * > Arguments_t

Protected Functions

getItem

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