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

Member Enumeration Documentation

enum ICmp::Predicate
strong
Enumerator
NE 
EQ 

Definition at line 319 of file ResultSetReductionOps.h.

319  {
320  NE,
321  EQ,
322  };

Constructor & Destructor Documentation

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

Definition at line 324 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 332 of file ResultSetReductionOps.h.

References lhs_.

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

Definition at line 330 of file ResultSetReductionOps.h.

References predicate_.

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

Definition at line 334 of file ResultSetReductionOps.h.

References rhs_.

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

Implements Instruction.

Definition at line 371 of file ResultSetReductionInterpreter.cpp.

References ReductionInterpreterImpl::runICmp().

371  {
372  ReductionInterpreterImpl::runICmp(this, interpreter);
373 }
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 340 of file ResultSetReductionOps.h.

Referenced by lhs().

const Predicate ICmp::predicate_
private

Definition at line 339 of file ResultSetReductionOps.h.

Referenced by predicate().

const Value* ICmp::rhs_
private

Definition at line 341 of file ResultSetReductionOps.h.

Referenced by rhs().


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