OmniSciDB  ba1bac9284
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 217 of file ResultSetReductionOps.h.

Constructor & Destructor Documentation

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

Definition at line 219 of file ResultSetReductionOps.h.

220  : 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

Definition at line 222 of file ResultSetReductionOps.h.

References base_.

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

Definition at line 224 of file ResultSetReductionOps.h.

References index_.

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

Implements Instruction.

Definition at line 354 of file ResultSetReductionInterpreter.cpp.

References ReductionInterpreterImpl::runGetElementPtr().

354  {
356 }
static void runGetElementPtr(const Instruction *instruction, ReductionInterpreterImpl *interpreter)

+ Here is the call graph for this function:

Member Data Documentation

const Value* GetElementPtr::base_

Definition at line 229 of file ResultSetReductionOps.h.

Referenced by base().

const Value* GetElementPtr::index_

Definition at line 230 of file ResultSetReductionOps.h.

Referenced by index().

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