OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ICmp Class Reference

#include <ResultSetReductionOps.h>

+ Inheritance diagram for ICmp:
+ Collaboration diagram for ICmp:

Public Types

enum  Predicate { Predicate::NE, Predicate::EQ }
 

Public Member Functions

 ICmp (const Predicate predicate, const Value *lhs, const Value *rhs, const std::string &label)
 
Predicate predicate () const
 
const Valuelhs () const
 
const Valuerhs () 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 Predicate predicate_
 
const Valuelhs_
 
const Valuerhs_
 

Detailed Description

Definition at line 246 of file ResultSetReductionOps.h.

Member Enumeration Documentation

enum ICmp::Predicate
strong
Enumerator
NE 
EQ 

Definition at line 248 of file ResultSetReductionOps.h.

248  {
249  NE,
250  EQ,
251  };

Constructor & Destructor Documentation

ICmp::ICmp ( const Predicate  predicate,
const Value lhs,
const Value rhs,
const std::string &  label 
)
inline

Definition at line 253 of file ResultSetReductionOps.h.

const std::string & label() const
Instruction(const Type type, const std::string &label)
const Value * rhs_
const Value * lhs_
const Predicate predicate_
Predicate predicate() const

Member Function Documentation

const Value* ICmp::lhs ( ) const
inline

Definition at line 261 of file ResultSetReductionOps.h.

References lhs_.

261 { return lhs_; }
const Value * lhs_
Predicate ICmp::predicate ( ) const
inline

Definition at line 259 of file ResultSetReductionOps.h.

References predicate_.

259 { return predicate_; }
const Predicate predicate_
const Value* ICmp::rhs ( ) const
inline

Definition at line 263 of file ResultSetReductionOps.h.

References rhs_.

263 { return rhs_; }
const Value * rhs_
void ICmp::run ( ReductionInterpreterImpl interpreter)
overridevirtual

Implements Instruction.

Definition at line 355 of file ResultSetReductionInterpreter.cpp.

References ReductionInterpreterImpl::runICmp().

355  {
356  ReductionInterpreterImpl::runICmp(this, interpreter);
357 }
static void runICmp(const Instruction *instruction, ReductionInterpreterImpl *interpreter)

+ Here is the call graph for this function:

Member Data Documentation

const Value* ICmp::lhs_
private

Definition at line 269 of file ResultSetReductionOps.h.

Referenced by lhs().

const Predicate ICmp::predicate_
private

Definition at line 268 of file ResultSetReductionOps.h.

Referenced by predicate().

const Value* ICmp::rhs_
private

Definition at line 270 of file ResultSetReductionOps.h.

Referenced by rhs().


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