OmniSciDB  d2f719934e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RexAbstractInput Class Reference

#include <RelAlgDagBuilder.h>

+ Inheritance diagram for RexAbstractInput:
+ Collaboration diagram for RexAbstractInput:

Public Member Functions

 RexAbstractInput (const unsigned in_index)
 
unsigned getIndex () const
 
void setIndex (const unsigned in_index) const
 
std::string toString () const override
 
size_t toHash () const override
 
- Public Member Functions inherited from Rex
virtual ~Rex ()
 

Private Attributes

unsigned in_index_
 

Additional Inherited Members

- Protected Attributes inherited from Rex
std::optional< size_t > hash_
 

Detailed Description

Definition at line 60 of file RelAlgDagBuilder.h.

Constructor & Destructor Documentation

RexAbstractInput::RexAbstractInput ( const unsigned  in_index)
inline

Definition at line 62 of file RelAlgDagBuilder.h.

Referenced by toHash().

62 : in_index_(in_index) {}

+ Here is the caller graph for this function:

Member Function Documentation

unsigned RexAbstractInput::getIndex ( ) const
inline
void RexAbstractInput::setIndex ( const unsigned  in_index) const
inline

Definition at line 66 of file RelAlgDagBuilder.h.

References in_index_.

Referenced by anonymous_namespace{RelAlgDagBuilder.cpp}::RexRebindReindexInputsVisitor::visitInput(), and anonymous_namespace{RelLeftDeepInnerJoin.cpp}::RebindRexInputsFromLeftDeepJoin::visitInput().

66 { in_index_ = in_index; }

+ Here is the caller graph for this function:

size_t RexAbstractInput::toHash ( ) const
inlineoverridevirtual

Implements Rex.

Reimplemented in RexInput.

Definition at line 72 of file RelAlgDagBuilder.h.

References Rex::hash_, in_index_, and RexAbstractInput().

72  {
73  if (!hash_) {
74  hash_ = typeid(RexAbstractInput).hash_code();
75  boost::hash_combine(*hash_, in_index_);
76  }
77  return *hash_;
78  }
RexAbstractInput(const unsigned in_index)
std::optional< size_t > hash_

+ Here is the call graph for this function:

std::string RexAbstractInput::toString ( ) const
inlineoverridevirtual

Implements Rex.

Reimplemented in RexInput.

Definition at line 68 of file RelAlgDagBuilder.h.

References cat(), in_index_, to_string(), and typeName().

68  {
69  return cat(::typeName(this), "(", std::to_string(in_index_), ")");
70  }
std::string cat(Ts &&...args)
std::string to_string(char const *&&v)
std::string typeName(const T *v)
Definition: toString.h:93

+ Here is the call graph for this function:

Member Data Documentation

unsigned RexAbstractInput::in_index_
mutableprivate

Definition at line 81 of file RelAlgDagBuilder.h.

Referenced by getIndex(), setIndex(), toHash(), and toString().


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