OmniSciDB  06b3bd477c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
< ExtArgumentType
const ExtArgumentType ret_

Detailed Description

Definition at line 74 of file ExtensionFunctionsWhitelist.h.

Constructor & Destructor Documentation

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

Definition at line 76 of file ExtensionFunctionsWhitelist.h.

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

Member Function Documentation

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

Definition at line 83 of file ExtensionFunctionsWhitelist.h.

References args_.

Referenced by CodeGenerator::codegenFunctionOperCastArgs(), toString(), and RelAlgTranslator::translateFunction().

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

+ Here is the caller graph for this function:

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

Definition at line 81 of file ExtensionFunctionsWhitelist.h.

References name_.

Referenced by CodeGenerator::codegenFunctionOperCastArgs(), and toString().

81 { return name_; }

+ Here is the caller graph for this function:

const ExtArgumentType ExtensionFunction::getRet ( ) const

Definition at line 85 of file ExtensionFunctionsWhitelist.h.

References ret_.

Referenced by toString().

85 { return ret_; }
const ExtArgumentType ret_

+ Here is the caller graph for this function:

std::string ExtensionFunction::toString ( ) const

Definition at line 304 of file ExtensionFunctionsWhitelist.cpp.

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

304  {
305  return getName() + "(" + ExtensionFunctionsWhitelist::toString(getArgs()) + ") -> " +
307 }
const std::vector< ExtArgumentType > & getArgs() const
const std::string & getName() const
const ExtArgumentType getRet() 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

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

Definition at line 90 of file ExtensionFunctionsWhitelist.h.

Referenced by getArgs().

const std::string ExtensionFunction::name_

Definition at line 89 of file ExtensionFunctionsWhitelist.h.

Referenced by getName().

const ExtArgumentType ExtensionFunction::ret_

Definition at line 91 of file ExtensionFunctionsWhitelist.h.

Referenced by getRet().

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