OmniSciDB  04ee39c94c
ExtensionFunction Class Reference

#include <ExtensionFunctionsWhitelist.h>

Public Member Functions

 ExtensionFunction (const std::string &name, const std::vector< ExtArgumentType > &args, const ExtArgumentType ret)
 
const std::string & getName () const
 
const std::vector< ExtArgumentType > & getArgs () const
 
const ExtArgumentType getRet () const
 
std::string toString () const
 

Private Attributes

const std::string name_
 
const std::vector< ExtArgumentTypeargs_
 
const ExtArgumentType ret_
 

Detailed Description

Definition at line 52 of file ExtensionFunctionsWhitelist.h.

Constructor & Destructor Documentation

◆ ExtensionFunction()

ExtensionFunction::ExtensionFunction ( const std::string &  name,
const std::vector< ExtArgumentType > &  args,
const ExtArgumentType  ret 
)
inline

Definition at line 54 of file ExtensionFunctionsWhitelist.h.

57  : name_(name), args_(args), ret_(ret) {}
const std::vector< ExtArgumentType > args_
const ExtArgumentType ret_

Member Function Documentation

◆ getArgs()

const std::vector<ExtArgumentType>& ExtensionFunction::getArgs ( ) const
inline

Definition at line 61 of file ExtensionFunctionsWhitelist.h.

Referenced by CodeGenerator::codegenFunctionOperCastArgs().

61 { return args_; }
const std::vector< ExtArgumentType > args_
+ Here is the caller graph for this function:

◆ getName()

const std::string& ExtensionFunction::getName ( ) const
inline

Definition at line 59 of file ExtensionFunctionsWhitelist.h.

59 { return name_; }

◆ getRet()

const ExtArgumentType ExtensionFunction::getRet ( ) const
inline

Definition at line 63 of file ExtensionFunctionsWhitelist.h.

63 { return ret_; }
const ExtArgumentType ret_

◆ toString()

std::string ExtensionFunction::toString ( ) const

Definition at line 215 of file ExtensionFunctionsWhitelist.cpp.

References anonymous_namespace{ExtensionFunctionsWhitelist.cpp}::serialize_type(), and ExtensionFunctionsWhitelist::toString().

215  {
216  return getName() + "(" + ExtensionFunctionsWhitelist::toString(getArgs()) + ") -> " +
218 }
const ExtArgumentType getRet() const
const std::string & getName() const
const std::vector< ExtArgumentType > & getArgs() const
static std::string toString(const std::vector< ExtensionFunction > &ext_funcs, std::string tab="")
+ Here is the call graph for this function:

Member Data Documentation

◆ args_

const std::vector<ExtArgumentType> ExtensionFunction::args_
private

Definition at line 68 of file ExtensionFunctionsWhitelist.h.

◆ name_

const std::string ExtensionFunction::name_
private

Definition at line 67 of file ExtensionFunctionsWhitelist.h.

◆ ret_

const ExtArgumentType ExtensionFunction::ret_
private

Definition at line 69 of file ExtensionFunctionsWhitelist.h.


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