OmniSciDB  b24e664e58
 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
args_
 
const ExtArgumentType ret_
 

Detailed Description

Definition at line 64 of file ExtensionFunctionsWhitelist.h.

Constructor & Destructor Documentation

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

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

Definition at line 73 of file ExtensionFunctionsWhitelist.h.

References args_.

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

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

+ Here is the caller graph for this function:

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

Definition at line 71 of file ExtensionFunctionsWhitelist.h.

References name_.

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

71 { return name_; }

+ Here is the caller graph for this function:

const ExtArgumentType ExtensionFunction::getRet ( ) const
inline

Definition at line 75 of file ExtensionFunctionsWhitelist.h.

References ret_.

Referenced by toString().

75 { return ret_; }
const ExtArgumentType ret_

+ Here is the caller graph for this function:

std::string ExtensionFunction::toString ( ) const

Definition at line 238 of file ExtensionFunctionsWhitelist.cpp.

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

238  {
239  return getName() + "(" + ExtensionFunctionsWhitelist::toString(getArgs()) + ") -> " +
241 }
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_
private

Definition at line 80 of file ExtensionFunctionsWhitelist.h.

Referenced by getArgs().

const std::string ExtensionFunction::name_
private

Definition at line 79 of file ExtensionFunctionsWhitelist.h.

Referenced by getName().

const ExtArgumentType ExtensionFunction::ret_
private

Definition at line 81 of file ExtensionFunctionsWhitelist.h.

Referenced by getRet().


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