OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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::Ret ( const Value value)
inline

Definition at line 324 of file ResultSetReductionOps.h.

324 : Instruction(value->type(), ""), value_(value) {}
Type type() const
Instruction(const Type type, const std::string &label)
const Value * value_
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

void Ret::run ( ReductionInterpreterImpl interpreter)
overridevirtual

Implements Instruction.

Definition at line 367 of file ResultSetReductionInterpreter.cpp.

References ReductionInterpreterImpl::runRet().

367  {
368  ReductionInterpreterImpl::runRet(this, interpreter);
369 }
static void runRet(const Instruction *instruction, ReductionInterpreterImpl *interpreter)

+ Here is the call graph for this function:

const Value* Ret::value ( ) const
inline

Definition at line 328 of file ResultSetReductionOps.h.

References value_.

328 { return value_; }
const Value * value_

Member Data Documentation

const Value* Ret::value_
private

Definition at line 333 of file ResultSetReductionOps.h.

Referenced by value().


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