OmniSciDB  2b310ab3b2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ReturnEarly Class Reference

#include <ResultSetReductionOps.h>

+ Inheritance diagram for ReturnEarly:
+ Collaboration diagram for ReturnEarly:

Public Member Functions

 ReturnEarly (const Value *cond, const std::string &label)
 
 ReturnEarly (const Value *cond, const Value *error_code, const std::string &label)
 
const Valuecond () const
 
const Valueerror_code () 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 Valuecond_
 
const Valueerror_code_
 

Detailed Description

Definition at line 453 of file ResultSetReductionOps.h.

Constructor & Destructor Documentation

ReturnEarly::ReturnEarly ( const Value cond,
const std::string &  label 
)
inline

Definition at line 455 of file ResultSetReductionOps.h.

456  : Instruction(Type::Void, label), cond_(cond), error_code_(nullptr) {}
const Value * cond_
const std::string & label() const
Instruction(const Type type, const std::string &label)
const Value * error_code_
ReturnEarly::ReturnEarly ( const Value cond,
const Value error_code,
const std::string &  label 
)
inline

Definition at line 458 of file ResultSetReductionOps.h.

459  : Instruction(Type::Void, label), cond_(cond), error_code_(error_code) {}
const Value * cond_
const std::string & label() const
Instruction(const Type type, const std::string &label)
const Value * error_code_

Member Function Documentation

const Value* ReturnEarly::cond ( ) const
inline

Definition at line 461 of file ResultSetReductionOps.h.

References cond_.

461 { return cond_; }
const Value * cond_
const Value* ReturnEarly::error_code ( ) const
inline

Definition at line 463 of file ResultSetReductionOps.h.

References error_code_.

463 { return error_code_; }
const Value * error_code_
void ReturnEarly::run ( ReductionInterpreterImpl interpreter)
overridevirtual

Implements Instruction.

Definition at line 398 of file ResultSetReductionInterpreter.cpp.

References ReductionInterpreterImpl::runReturnEarly().

398  {
399  ReductionInterpreterImpl::runReturnEarly(this, interpreter);
400 }
static void runReturnEarly(const Instruction *instruction, ReductionInterpreterImpl *interpreter)

+ Here is the call graph for this function:

Member Data Documentation

const Value* ReturnEarly::cond_
private

Definition at line 468 of file ResultSetReductionOps.h.

Referenced by cond().

const Value* ReturnEarly::error_code_
private

Definition at line 469 of file ResultSetReductionOps.h.

Referenced by error_code().


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