zorba::NonContextualExternalFunction

#include <zorba/function.h>

Inherited from: zorba::ExternalFunction

The NonContextualExternalFunction class serves as the base of subclasses that represent the implementation of non 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 =0

String

getLocalName() const =0

String

getURI() const =0

bool

isContextual() const

~NonContextualExternalFunction()

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

~NonContextualExternalFunction

 ~NonContextualExternalFunction()

Public Types

Arguments_t

std::vector< ItemSequence * > Arguments_t

Protected Functions

getItem

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