OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RexRef Class Reference

#include <RelAlgDagBuilder.h>

+ Inheritance diagram for RexRef:
+ Collaboration diagram for RexRef:

Public Member Functions

 RexRef (const size_t index)
 
size_t getIndex () const
 
std::string toString (RelRexToStringConfig config=RelRexToStringConfig::defaults()) const override
 
size_t toHash () const override
 
std::unique_ptr< RexRefdeepCopy () const
 
- Public Member Functions inherited from Rex
virtual ~Rex ()
 

Private Attributes

const size_t index_
 

Additional Inherited Members

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

Detailed Description

Definition at line 675 of file RelAlgDagBuilder.h.

Constructor & Destructor Documentation

RexRef::RexRef ( const size_t  index)
inline

Definition at line 677 of file RelAlgDagBuilder.h.

Referenced by toHash().

677 : index_(index) {}
const size_t index_

+ Here is the caller graph for this function:

Member Function Documentation

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

Definition at line 694 of file RelAlgDagBuilder.h.

References index_.

Referenced by RexDeepCopyVisitor::visitRef().

694 { return std::make_unique<RexRef>(index_); }
const size_t index_

+ Here is the caller graph for this function:

size_t RexRef::getIndex ( ) const
inline

Definition at line 679 of file RelAlgDagBuilder.h.

References index_.

Referenced by anonymous_namespace{RelAlgExecutor.cpp}::translate_targets().

679 { return index_; }
const size_t index_

+ Here is the caller graph for this function:

size_t RexRef::toHash ( ) const
inlineoverridevirtual

Implements Rex.

Definition at line 686 of file RelAlgDagBuilder.h.

References Rex::hash_, index_, and RexRef().

686  {
687  if (!hash_) {
688  hash_ = typeid(RexRef).hash_code();
689  boost::hash_combine(*hash_, index_);
690  }
691  return *hash_;
692  }
const size_t index_
std::optional< size_t > hash_
RexRef(const size_t index)

+ Here is the call graph for this function:

std::string RexRef::toString ( RelRexToStringConfig  config = RelRexToStringConfig::defaults()) const
inlineoverridevirtual

Implements Rex.

Definition at line 681 of file RelAlgDagBuilder.h.

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

682  {
683  return cat(::typeName(this), "(", std::to_string(index_), ")");
684  }
std::string cat(Ts &&...args)
const size_t index_
std::string to_string(char const *&&v)
std::string typeName(const T *v)
Definition: toString.h:102

+ Here is the call graph for this function:

Member Data Documentation

const size_t RexRef::index_
private

Definition at line 697 of file RelAlgDagBuilder.h.

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


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