OmniSciDB  dfae7c3b14
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 (bool keep_suffix=true) const
 
const std::vector< ExtArgumentType > & getArgs () const
 
const std::vector< ExtArgumentType > & getInputArgs () const
 
const ExtArgumentType getRet () const
 
std::string toString () const
 
std::string toStringSQL () const
 

Private Attributes

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

Detailed Description

Definition at line 75 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 77 of file ExtensionFunctionsWhitelist.h.

80  : name_(name), args_(args), ret_(ret) {}
const std::vector< ExtArgumentType > args_
name
Definition: setup.py:35
const ExtArgumentType ret_

Member Function Documentation

◆ getArgs()

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

Definition at line 84 of file ExtensionFunctionsWhitelist.h.

Referenced by CodeGenerator::codegenFunctionOperCastArgs().

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

◆ getInputArgs()

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

Definition at line 85 of file ExtensionFunctionsWhitelist.h.

85 { return args_; }
const std::vector< ExtArgumentType > args_

◆ getName()

const std::string ExtensionFunction::getName ( bool  keep_suffix = true) const

Definition at line 402 of file ExtensionFunctionsWhitelist.cpp.

References anonymous_namespace{ExtensionFunctionsWhitelist.cpp}::drop_suffix().

Referenced by CodeGenerator::codegenFunctionOperCastArgs().

402  {
403  return (keep_suffix ? name_ : drop_suffix(name_));
404 }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRet()

const ExtArgumentType ExtensionFunction::getRet ( ) const
inline

Definition at line 87 of file ExtensionFunctionsWhitelist.h.

References toString().

87 { return ret_; }
const ExtArgumentType ret_
+ Here is the call graph for this function:

◆ toString()

std::string ExtensionFunction::toString ( ) const

Definition at line 406 of file ExtensionFunctionsWhitelist.cpp.

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

406  {
407  return getName() + "(" + ExtensionFunctionsWhitelist::toString(args_) + ") -> " +
409 }
const std::vector< ExtArgumentType > args_
const std::string getName(bool keep_suffix=true) const
std::string serialize_type(const ExtArgumentType type, bool byval=true)
const ExtArgumentType ret_
static std::string toString(const std::vector< ExtensionFunction > &ext_funcs, std::string tab="")
+ Here is the call graph for this function:

◆ toStringSQL()

std::string ExtensionFunction::toStringSQL ( ) const

Definition at line 411 of file ExtensionFunctionsWhitelist.cpp.

References ExtensionFunctionsWhitelist::toStringSQL().

411  {
412  return getName(/* keep_suffix = */ false) + "(" +
415 }
const std::vector< ExtArgumentType > args_
const std::string getName(bool keep_suffix=true) const
const ExtArgumentType ret_
static std::string toStringSQL(const std::vector< ExtArgumentType > &sig_types)
+ Here is the call graph for this function:

Member Data Documentation

◆ args_

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

Definition at line 93 of file ExtensionFunctionsWhitelist.h.

◆ name_

const std::string ExtensionFunction::name_
private

Definition at line 92 of file ExtensionFunctionsWhitelist.h.

◆ ret_

const ExtArgumentType ExtensionFunction::ret_
private

Definition at line 94 of file ExtensionFunctionsWhitelist.h.


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