OmniSciDB  340b00dbf6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RexInput Class Reference

#include <RelAlgDagBuilder.h>

+ Inheritance diagram for RexInput:
+ Collaboration diagram for RexInput:

Public Member Functions

 RexInput (const RelAlgNode *node, const unsigned in_index)
 
const RelAlgNodegetSourceNode () const
 
void setSourceNode (const RelAlgNode *node) const
 
bool operator== (const RexInput &that) const
 
std::string toString () const override
 
std::unique_ptr< RexInputdeepCopy () const
 
- Public Member Functions inherited from RexAbstractInput
 RexAbstractInput (const unsigned in_index)
 
unsigned getIndex () const
 
void setIndex (const unsigned in_index) const
 
- Public Member Functions inherited from Rex
virtual ~Rex ()
 

Private Attributes

const RelAlgNodenode_
 

Detailed Description

Definition at line 322 of file RelAlgDagBuilder.h.

Constructor & Destructor Documentation

RexInput::RexInput ( const RelAlgNode node,
const unsigned  in_index 
)
inline

Definition at line 324 of file RelAlgDagBuilder.h.

325  : RexAbstractInput(in_index), node_(node) {}
RexAbstractInput(const unsigned in_index)
const RelAlgNode * node_

Member Function Documentation

std::unique_ptr<RexInput> RexInput::deepCopy ( ) const
inline

Definition at line 340 of file RelAlgDagBuilder.h.

References RexAbstractInput::getIndex(), and node_.

Referenced by anonymous_namespace{RelAlgOptimizer.cpp}::RexProjectInputRedirector::visitInput(), RexDeepCopyVisitor::visitInput(), RexInputRenumber< bAllowMissing >::visitInput(), and anonymous_namespace{RelAlgOptimizer.cpp}::RexInputRenumberVisitor::visitInput().

340  {
341  return std::make_unique<RexInput>(node_, getIndex());
342  }
unsigned getIndex() const
const RelAlgNode * node_

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool RexInput::operator== ( const RexInput that) const
inline

Definition at line 334 of file RelAlgDagBuilder.h.

References RexAbstractInput::getIndex(), and getSourceNode().

334  {
335  return getSourceNode() == that.getSourceNode() && getIndex() == that.getIndex();
336  }
unsigned getIndex() const
const RelAlgNode * getSourceNode() const

+ Here is the call graph for this function:

void RexInput::setSourceNode ( const RelAlgNode node) const
inline

Definition at line 332 of file RelAlgDagBuilder.h.

References node_.

Referenced by RelLogicalUnion::copyAndRedirectSource(), anonymous_namespace{RelAlgOptimizer.cpp}::RexRebindInputsVisitor::visitInput(), anonymous_namespace{RelAlgDagBuilder.cpp}::RexRebindInputsVisitor::visitInput(), and anonymous_namespace{RelLeftDeepInnerJoin.cpp}::RebindRexInputsFromLeftDeepJoin::visitInput().

332 { node_ = node; }
const RelAlgNode * node_

+ Here is the caller graph for this function:

std::string RexInput::toString ( ) const
overridevirtual

Reimplemented from RexAbstractInput.

Definition at line 2686 of file RelAlgDagBuilder.cpp.

References cat(), RexAbstractInput::getIndex(), node_, and to_string().

2686  {
2687  return cat(::typeName(this),
2688  "(node=",
2689  ::toString(node_),
2690  ", in_index=",
2692  ")");
2693 }
std::string cat(Ts &&...args)
std::string to_string(char const *&&v)
unsigned getIndex() const
std::string toString() const override
const RelAlgNode * node_

+ Here is the call graph for this function:

Member Data Documentation

const RelAlgNode* RexInput::node_
mutableprivate

Definition at line 345 of file RelAlgDagBuilder.h.

Referenced by deepCopy(), getSourceNode(), setSourceNode(), and toString().


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