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

Constructor & Destructor Documentation

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

Definition at line 526 of file ResultSetReductionOps.h.

527  : 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 529 of file ResultSetReductionOps.h.

530  : 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 532 of file ResultSetReductionOps.h.

References cond_.

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

Definition at line 534 of file ResultSetReductionOps.h.

References error_code_.

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

Implements Instruction.

Definition at line 403 of file ResultSetReductionInterpreter.cpp.

References ReductionInterpreterImpl::runReturnEarly().

403  {
404  ReductionInterpreterImpl::runReturnEarly(this, interpreter);
405 }
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 539 of file ResultSetReductionOps.h.

Referenced by cond().

const Value* ReturnEarly::error_code_
private

Definition at line 540 of file ResultSetReductionOps.h.

Referenced by error_code().


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