Public Types | Public Member Functions | Protected Member Functions | List of all members
zorba::NonContextualExternalFunction Class Referenceabstract

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

#include <zorba/function.h>

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

Public Types

typedef std::vector
< ItemSequence * > 
Arguments_t
 

Public Member Functions

virtual ItemSequence_t evaluate (const Arguments_t &) const =0
 
virtual String getLocalName () const =0
 
virtual String getURI () const =0
 
bool isContextual () const
 
virtual ~NonContextualExternalFunction ()
 

Protected Member Functions

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

Detailed Description

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.

Examples:
external_functions.cpp.

Definition at line 189 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

virtual zorba::NonContextualExternalFunction::~NonContextualExternalFunction ( )
inlinevirtual

Definition at line 192 of file function.h.

Member Function Documentation

virtual ItemSequence_t zorba::NonContextualExternalFunction::evaluate ( const Arguments_t ) const
pure virtual
Item zorba::ExternalFunction::getItem ( Arguments_t const &  args,
unsigned  pos 
) const
protectedinherited
virtual String zorba::ExternalFunction::getLocalName ( ) const
pure virtualinherited
Returns
The local name of the function QName
virtual String zorba::ExternalFunction::getURI ( ) const
pure virtualinherited
Returns
The namespace URI of the function QName
bool zorba::NonContextualExternalFunction::isContextual ( ) const
inlinevirtual
Returns
True if the external function is contextual; false otherwise.

Implements zorba::ExternalFunction.

Definition at line 198 of file function.h.


The documentation for this class was generated from the following file: