OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GetElementPtr Class Reference

#include <ResultSetReductionOps.h>

+ Inheritance diagram for GetElementPtr:
+ Collaboration diagram for GetElementPtr:

Public Member Functions

 GetElementPtr (const Value *base, const Value *index, const std::string &label)
 
const Valuebase () const
 
const Valueindex () const
 
void run (ReductionInterpreterImpl *interpreter) override
 
- 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 Valuebase_
 
const Valueindex_
 

Detailed Description

Definition at line 288 of file ResultSetReductionOps.h.

Constructor & Destructor Documentation

GetElementPtr::GetElementPtr ( const Value base,
const Value index,
const std::string &  label 
)
inline

Definition at line 290 of file ResultSetReductionOps.h.

291  : Instruction(base->type(), label), base_(base), index_(index) {}
const std::string & label() const
const Value * index_
Type type() const
Instruction(const Type type, const std::string &label)

Member Function Documentation

const Value* GetElementPtr::base ( ) const
inline

Definition at line 293 of file ResultSetReductionOps.h.

References base_.

293 { return base_; }
const Value* GetElementPtr::index ( ) const
inline

Definition at line 295 of file ResultSetReductionOps.h.

References index_.

295 { return index_; }
const Value * index_
void GetElementPtr::run ( ReductionInterpreterImpl interpreter)
overridevirtual

Implements Instruction.

Definition at line 363 of file ResultSetReductionInterpreter.cpp.

References ReductionInterpreterImpl::runGetElementPtr().

363  {
365 }
static void runGetElementPtr(const Instruction *instruction, ReductionInterpreterImpl *interpreter)

+ Here is the call graph for this function:

Member Data Documentation

const Value* GetElementPtr::base_
private

Definition at line 300 of file ResultSetReductionOps.h.

Referenced by base().

const Value* GetElementPtr::index_
private

Definition at line 301 of file ResultSetReductionOps.h.

Referenced by index().


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