strus  0.17
Public Member Functions | List of all members
strus::ScalarFunctionParserInterface Class Referenceabstract

Interface for parsing scalar function definitions. More...

#include <scalarFunctionParserInterface.hpp>

Public Member Functions

virtual ~ScalarFunctionParserInterface ()
 Destructor. More...
 
virtual ScalarFunctionInterfacecreateFunction (const std::string &src, const std::vector< std::string > &argumentNames) const =0
 Parses a function from source and instantiates a function object. More...
 
virtual const char * getDescription () const =0
 Get a description of the parser syntax. More...
 

Detailed Description

Interface for parsing scalar function definitions.

Constructor & Destructor Documentation

virtual strus::ScalarFunctionParserInterface::~ScalarFunctionParserInterface ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual ScalarFunctionInterface* strus::ScalarFunctionParserInterface::createFunction ( const std::string &  src,
const std::vector< std::string > &  argumentNames 
) const
pure virtual

Parses a function from source and instantiates a function object.

Parameters
[in]srcsource describing the function
[in]argumentNamesthe list of function argument names in the source (default is a prefix '_' followed by the argument index starting with 0)
Returns
the created function object
virtual const char* strus::ScalarFunctionParserInterface::getDescription ( ) const
pure virtual

Get a description of the parser syntax.

Returns
the description

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