OmniSciDB  29e35f4d58
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 64 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 66 of file ExtensionFunctionsWhitelist.h.

69  : 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 73 of file ExtensionFunctionsWhitelist.h.

Referenced by CodeGenerator::codegenFunctionOperCastArgs().

73 { 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 71 of file ExtensionFunctionsWhitelist.h.

Referenced by CodeGenerator::codegenFunctionOperCastArgs().

71 { return name_; }
+ Here is the caller graph for this function:

◆ getRet()

const ExtArgumentType ExtensionFunction::getRet ( ) const
inline

Definition at line 75 of file ExtensionFunctionsWhitelist.h.

75 { return ret_; }
const ExtArgumentType ret_

◆ toString()

std::string ExtensionFunction::toString ( ) const

Definition at line 238 of file ExtensionFunctionsWhitelist.cpp.

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

238  {
239  return getName() + "(" + ExtensionFunctionsWhitelist::toString(getArgs()) + ") -> " +
241 }
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 80 of file ExtensionFunctionsWhitelist.h.

◆ name_

const std::string ExtensionFunction::name_
private

Definition at line 79 of file ExtensionFunctionsWhitelist.h.

◆ ret_

const ExtArgumentType ExtensionFunction::ret_
private

Definition at line 81 of file ExtensionFunctionsWhitelist.h.


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