OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Call Class Reference

#include <ResultSetReductionOps.h>

+ Inheritance diagram for Call:
+ Collaboration diagram for Call:

Public Member Functions

 Call (const Function *callee, const std::vector< const Value * > &arguments, const std::string &label)
 
 Call (const std::string &callee_name, const std::vector< const Value * > &arguments, const std::string &label)
 
bool external () const
 
const std::string & callee_name () const
 
const Functioncallee () 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 Functioncallee_
 
const std::vector< const Value * > arguments_
 
void * cached_callee_
 

Detailed Description

Definition at line 338 of file ResultSetReductionOps.h.

Constructor & Destructor Documentation

Call::Call ( const Function callee,
const std::vector< const Value * > &  arguments,
const std::string &  label 
)
inline

Definition at line 340 of file ResultSetReductionOps.h.

343  : Instruction(callee->ret_type(), label)
344  , callee_(callee)
346  , cached_callee_(nullptr) {}
const std::string & label() const
const std::vector< const Value * > arguments_
Type ret_type() const
Instruction(const Type type, const std::string &label)
void * cached_callee_
const Function * callee_
const std::vector< const Value * > & arguments() const
Call::Call ( const std::string &  callee_name,
const std::vector< const Value * > &  arguments,
const std::string &  label 
)
inline

Definition at line 348 of file ResultSetReductionOps.h.

353  , callee_(nullptr)
355  , cached_callee_(nullptr) {}
const std::string & label() const
const std::vector< const Value * > arguments_
const std::string callee_name_
Instruction(const Type type, const std::string &label)
void * cached_callee_
const std::string & callee_name() const
const Function * callee_
const std::vector< const Value * > & arguments() const

Member Function Documentation

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

Definition at line 363 of file ResultSetReductionOps.h.

References arguments_.

Referenced by ReductionInterpreterImpl::bindStub(), and ReductionInterpreterImpl::getCallInputs().

363 { return arguments_; }
const std::vector< const Value * > arguments_

+ Here is the caller graph for this function:

void* Call::cached_callee ( ) const
inline

Definition at line 367 of file ResultSetReductionOps.h.

References cached_callee_.

Referenced by ReductionInterpreterImpl::bindStub(), and set_cached_callee().

367 { return cached_callee_; }
void * cached_callee_

+ Here is the caller graph for this function:

const Function* Call::callee ( ) const
inline

Definition at line 361 of file ResultSetReductionOps.h.

References callee_.

361 { return callee_; }
const Function * callee_
const std::string& Call::callee_name ( ) const
inline

Definition at line 359 of file ResultSetReductionOps.h.

References callee_name_.

Referenced by ReductionInterpreterImpl::bindStub().

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

+ Here is the caller graph for this function:

bool Call::external ( ) const
inline

Definition at line 357 of file ResultSetReductionOps.h.

Referenced by ReductionInterpreterImpl::bindStub().

357 { return false; }

+ Here is the caller graph for this function:

void Call::run ( ReductionInterpreterImpl interpreter)
overridevirtual

Implements Instruction.

Definition at line 371 of file ResultSetReductionInterpreter.cpp.

References ReductionInterpreterImpl::runCall().

371  {
372  ReductionInterpreterImpl::runCall(this, interpreter);
373 }
static void runCall(const Instruction *instruction, ReductionInterpreterImpl *interpreter)

+ Here is the call graph for this function:

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

Definition at line 369 of file ResultSetReductionOps.h.

References cached_callee(), and cached_callee_.

Referenced by ReductionInterpreterImpl::bindStub().

void * cached_callee_
void * cached_callee() const

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

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

Definition at line 374 of file ResultSetReductionOps.h.

Referenced by arguments().

void* Call::cached_callee_
mutableprivate

Definition at line 376 of file ResultSetReductionOps.h.

Referenced by cached_callee(), and set_cached_callee().

const Function* Call::callee_
private

Definition at line 373 of file ResultSetReductionOps.h.

Referenced by callee().

const std::string Call::callee_name_
private

Definition at line 372 of file ResultSetReductionOps.h.

Referenced by callee_name().


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