OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Alloca Class Reference

#include <ResultSetReductionOps.h>

+ Inheritance diagram for Alloca:
+ Collaboration diagram for Alloca:

Public Member Functions

 Alloca (const Type element_type, const Value *array_size, const std::string &label)
 
const Valuearray_size () 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 Valuearray_size_
 

Detailed Description

Definition at line 411 of file ResultSetReductionOps.h.

Constructor & Destructor Documentation

Alloca::Alloca ( const Type  element_type,
const Value array_size,
const std::string &  label 
)
inline

Definition at line 413 of file ResultSetReductionOps.h.

414  : Instruction(pointer_type(element_type), label), array_size_(array_size) {}
const Value * array_size_
const std::string & label() const
Instruction(const Type type, const std::string &label)
Type pointer_type(const Type pointee)

Member Function Documentation

const Value* Alloca::array_size ( ) const
inline

Definition at line 416 of file ResultSetReductionOps.h.

References array_size_.

416 { return array_size_; }
const Value * array_size_
void Alloca::run ( ReductionInterpreterImpl interpreter)
overridevirtual

Implements Instruction.

Definition at line 379 of file ResultSetReductionInterpreter.cpp.

References ReductionInterpreterImpl::runAlloca().

379  {
380  ReductionInterpreterImpl::runAlloca(this, interpreter);
381 }
static void runAlloca(const Instruction *instruction, ReductionInterpreterImpl *interpreter)

+ Here is the call graph for this function:

Member Data Documentation

const Value* Alloca::array_size_
private

Definition at line 421 of file ResultSetReductionOps.h.

Referenced by array_size().


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