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

493  : 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 495 of file ResultSetReductionOps.h.

References array_size_.

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

Implements Instruction.

Definition at line 395 of file ResultSetReductionInterpreter.cpp.

References ReductionInterpreterImpl::runAlloca().

395  {
396  ReductionInterpreterImpl::runAlloca(this, interpreter);
397 }
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 500 of file ResultSetReductionOps.h.

Referenced by array_size().


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