OmniSciDB  8a228a1076
Ret Class Reference

#include <ResultSetReductionOps.h>

+ Inheritance diagram for Ret:
+ Collaboration diagram for Ret:

Public Member Functions

 Ret (const Value *value)
 
 Ret ()
 
const Valuevalue () 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 Valuevalue_
 

Detailed Description

Definition at line 322 of file ResultSetReductionOps.h.

Constructor & Destructor Documentation

◆ Ret() [1/2]

Ret::Ret ( const Value value)
inline

Definition at line 324 of file ResultSetReductionOps.h.

324 : Instruction(value->type(), ""), value_(value) {}
Instruction(const Type type, const std::string &label)
Type type() const
const Value * value_

◆ Ret() [2/2]

Ret::Ret ( )
inline

Definition at line 326 of file ResultSetReductionOps.h.

326 : Instruction(Type::Void, ""), value_(nullptr) {}
Instruction(const Type type, const std::string &label)
const Value * value_

Member Function Documentation

◆ run()

void Ret::run ( ReductionInterpreterImpl interpreter)
overridevirtual

Implements Instruction.

Definition at line 378 of file ResultSetReductionInterpreter.cpp.

References ReductionInterpreterImpl::runRet().

378  {
379  ReductionInterpreterImpl::runRet(this, interpreter);
380 }
static void runRet(const Instruction *instruction, ReductionInterpreterImpl *interpreter)
+ Here is the call graph for this function:

◆ value()

const Value* Ret::value ( ) const
inline

Definition at line 328 of file ResultSetReductionOps.h.

References run.

328 { return value_; }
const Value * value_

Member Data Documentation

◆ value_

const Value* Ret::value_
private

Definition at line 333 of file ResultSetReductionOps.h.


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