OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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)
 
 Call (const std::string &callee_name, const Type returnType, 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 409 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 411 of file ResultSetReductionOps.h.

414  : Instruction(callee->ret_type(), label)
415  , callee_(callee)
417  , 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 419 of file ResultSetReductionOps.h.

424  , callee_(nullptr)
426  , 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
Call::Call ( const std::string &  callee_name,
const Type  returnType,
const std::vector< const Value * > &  arguments,
const std::string &  label 
)
inline

Definition at line 428 of file ResultSetReductionOps.h.

432  : Instruction(returnType, label)
434  , callee_(nullptr)
436  , 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 444 of file ResultSetReductionOps.h.

References arguments_.

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

444 { 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 448 of file ResultSetReductionOps.h.

References cached_callee_.

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

448 { return cached_callee_; }
void * cached_callee_

+ Here is the caller graph for this function:

const Function* Call::callee ( ) const
inline

Definition at line 442 of file ResultSetReductionOps.h.

References callee_.

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

Definition at line 440 of file ResultSetReductionOps.h.

References callee_name_.

Referenced by ReductionInterpreterImpl::bindStub().

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

+ Here is the caller graph for this function:

bool Call::external ( ) const
inline

Definition at line 438 of file ResultSetReductionOps.h.

Referenced by ReductionInterpreterImpl::bindStub().

438 { return false; }

+ Here is the caller graph for this function:

void Call::run ( ReductionInterpreterImpl interpreter)
overridevirtual

Implements Instruction.

Definition at line 387 of file ResultSetReductionInterpreter.cpp.

References ReductionInterpreterImpl::runCall().

387  {
388  ReductionInterpreterImpl::runCall(this, interpreter);
389 }
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 450 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 455 of file ResultSetReductionOps.h.

Referenced by arguments().

void* Call::cached_callee_
mutableprivate

Definition at line 457 of file ResultSetReductionOps.h.

Referenced by cached_callee(), and set_cached_callee().

const Function* Call::callee_
private

Definition at line 454 of file ResultSetReductionOps.h.

Referenced by callee().

const std::string Call::callee_name_
private

Definition at line 453 of file ResultSetReductionOps.h.

Referenced by callee_name().


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