Public Types | Public Member Functions
zorba::ContextualExternalFunction Class Reference

The ContextualExternalFunction class serves as the base of subclasses that represent the implementation of contextual external functions. More...

#include <zorba/function.h>

Inheritance diagram for zorba::ContextualExternalFunction:
Inheritance graph
[legend]
Collaboration diagram for zorba::ContextualExternalFunction:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector
< ItemSequence * > 
Arguments_t

Public Member Functions

virtual ItemSequence_t evaluate (const Arguments_t &, const StaticContext *, const DynamicContext *) const =0
virtual String getLocalName () const =0
virtual String getURI () const =0
bool isContextual () const
virtual ~ContextualExternalFunction ()

Detailed Description

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.

Examples:
external_functions.cpp.

Definition at line 207 of file function.h.


Member Typedef Documentation

typedef std::vector<ItemSequence*> zorba::ExternalFunction::Arguments_t [inherited]

Definition at line 151 of file function.h.


Constructor & Destructor Documentation

Definition at line 210 of file function.h.


Member Function Documentation

virtual ItemSequence_t zorba::ContextualExternalFunction::evaluate ( const Arguments_t ,
const StaticContext ,
const DynamicContext  
) const [pure virtual]
virtual String zorba::ExternalFunction::getLocalName ( ) const [pure virtual, inherited]
Returns:
The local name of the function QName
virtual String zorba::ExternalFunction::getURI ( ) const [pure virtual, inherited]
Returns:
The namespace URI of the function QName
Returns:
True if the external function is contextual; false otherwise.

Implements zorba::ExternalFunction.

Definition at line 219 of file function.h.


The documentation for this class was generated from the following file:
blog comments powered by Disqus