OmniSciDB  b24e664e58
 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 
)
inline

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
inline

Definition at line 222 of file ResultSetReductionOps.h.

References base_.

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

Definition at line 224 of file ResultSetReductionOps.h.

References index_.

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

Implements Instruction.

Definition at line 347 of file ResultSetReductionInterpreter.cpp.

References ReductionInterpreterImpl::runGetElementPtr().

347  {
349 }
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 229 of file ResultSetReductionOps.h.

Referenced by base().

const Value* GetElementPtr::index_
private

Definition at line 230 of file ResultSetReductionOps.h.

Referenced by index().


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