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

Constructor & Destructor Documentation

Ret::Ret ( const Value value)
inline

Definition at line 395 of file ResultSetReductionOps.h.

395 : 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 397 of file ResultSetReductionOps.h.

397 : 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 383 of file ResultSetReductionInterpreter.cpp.

References ReductionInterpreterImpl::runRet().

383  {
384  ReductionInterpreterImpl::runRet(this, interpreter);
385 }
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 399 of file ResultSetReductionOps.h.

References value_.

399 { return value_; }
const Value * value_

Member Data Documentation

const Value* Ret::value_
private

Definition at line 404 of file ResultSetReductionOps.h.

Referenced by value().


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