OmniSciDB  dfae7c3b14
ExternalCall Class Reference

#include <ResultSetReductionOps.h>

+ Inheritance diagram for ExternalCall:
+ Collaboration diagram for ExternalCall:

Public Member Functions

 ExternalCall (const std::string &callee_name, const Type ret_type, const std::vector< const Value *> &arguments, const std::string &label)
 
bool external () const
 
const std::string & callee_name () const
 
const std::vector< const Value * > & arguments () const
 
void run (ReductionInterpreterImpl *interpreter) override
 
void * cached_callee () const
 
void set_cached_callee (void *cached_callee) const
 
- Public Member Functions inherited from Instruction
 Instruction (const Type type, const std::string &label)
 
- Public Member Functions inherited from Value
 Value (const Type type, const std::string &label)
 
Type type () const
 
size_t id () const
 
const std::string & label () const
 
virtual ~Value ()=default
 

Private Attributes

const std::string callee_name_
 
const std::vector< const Value * > arguments_
 
void * cached_callee_
 

Detailed Description

Definition at line 390 of file ResultSetReductionOps.h.

Constructor & Destructor Documentation

◆ ExternalCall()

ExternalCall::ExternalCall ( const std::string &  callee_name,
const Type  ret_type,
const std::vector< const Value *> &  arguments,
const std::string &  label 
)
inline

Definition at line 392 of file ResultSetReductionOps.h.

396  : Instruction(ret_type, label)
399  , cached_callee_(nullptr) {}
const std::string callee_name_
const std::vector< const Value * > arguments_
Instruction(const Type type, const std::string &label)
const std::vector< const Value * > & arguments() const
const std::string & callee_name() const
const std::string & label() const

Member Function Documentation

◆ arguments()

const std::vector<const Value*>& ExternalCall::arguments ( ) const
inline

Definition at line 405 of file ResultSetReductionOps.h.

References run.

Referenced by ReductionInterpreterImpl::runExternalCall().

405 { return arguments_; }
const std::vector< const Value * > arguments_
+ Here is the caller graph for this function:

◆ cached_callee()

void* ExternalCall::cached_callee ( ) const
inline

Definition at line 409 of file ResultSetReductionOps.h.

409 { return cached_callee_; }

◆ callee_name()

const std::string& ExternalCall::callee_name ( ) const
inline

Definition at line 403 of file ResultSetReductionOps.h.

403 { return callee_name_; }
const std::string callee_name_

◆ external()

bool ExternalCall::external ( ) const
inline

Definition at line 401 of file ResultSetReductionOps.h.

401 { return true; }

◆ run()

void ExternalCall::run ( ReductionInterpreterImpl interpreter)
overridevirtual

Implements Instruction.

Definition at line 386 of file ResultSetReductionInterpreter.cpp.

References ReductionInterpreterImpl::runExternalCall().

386  {
388 }
static void runExternalCall(const Instruction *instruction, ReductionInterpreterImpl *interpreter)
+ Here is the call graph for this function:

◆ set_cached_callee()

void ExternalCall::set_cached_callee ( void *  cached_callee) const
inline

Definition at line 411 of file ResultSetReductionOps.h.

Member Data Documentation

◆ arguments_

const std::vector<const Value*> ExternalCall::arguments_
private

Definition at line 415 of file ResultSetReductionOps.h.

◆ cached_callee_

void* ExternalCall::cached_callee_
mutableprivate

Definition at line 416 of file ResultSetReductionOps.h.

◆ callee_name_

const std::string ExternalCall::callee_name_
private

Definition at line 414 of file ResultSetReductionOps.h.


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