OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Cast Class Reference

#include <ResultSetReductionOps.h>

+ Inheritance diagram for Cast:
+ Collaboration diagram for Cast:

Public Types

enum  CastOp { CastOp::Trunc, CastOp::SExt, CastOp::BitCast }

Public Member Functions

 Cast (const CastOp op, const Value *source, const Type type, const std::string &label)
CastOp op () const
const Valuesource () 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 CastOp op_
const Valuesource_

Detailed Description

Definition at line 300 of file ResultSetReductionOps.h.

Member Enumeration Documentation

enum Cast::CastOp

Definition at line 302 of file ResultSetReductionOps.h.

302  {
303  Trunc,
304  SExt,
305  BitCast,
306  };

Constructor & Destructor Documentation

Cast::Cast ( const CastOp  op,
const Value source,
const Type  type,
const std::string &  label 

Definition at line 308 of file ResultSetReductionOps.h.

309  : Instruction(type, label), op_(op), source_(source) {}
const std::string & label() const
const Value * source_
Type type() const
Instruction(const Type type, const std::string &label)
CastOp op() const
const CastOp op_

Member Function Documentation

CastOp Cast::op ( ) const

Definition at line 311 of file ResultSetReductionOps.h.

References op_.

311 { return op_; }
const CastOp op_
void Cast::run ( ReductionInterpreterImpl interpreter)

Implements Instruction.

Definition at line 370 of file ResultSetReductionInterpreter.cpp.

References ReductionInterpreterImpl::runCast().

370  {
371  ReductionInterpreterImpl::runCast(this, interpreter);
372 }
static void runCast(const Instruction *instruction, ReductionInterpreterImpl *interpreter)

+ Here is the call graph for this function:

const Value* Cast::source ( ) const

Definition at line 313 of file ResultSetReductionOps.h.

References source_.

313 { return source_; }
const Value * source_

Member Data Documentation

const CastOp Cast::op_

Definition at line 318 of file ResultSetReductionOps.h.

Referenced by op().

const Value* Cast::source_

Definition at line 319 of file ResultSetReductionOps.h.

Referenced by source().

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