OmniSciDB  d2f719934e
 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 () 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 642 of file RelAlgDagBuilder.h.

Constructor & Destructor Documentation

RexRef::RexRef ( const size_t  index)
inline

Definition at line 644 of file RelAlgDagBuilder.h.

Referenced by toHash().

644 : 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 660 of file RelAlgDagBuilder.h.

References index_.

Referenced by RexDeepCopyVisitor::visitRef().

660 { 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 646 of file RelAlgDagBuilder.h.

References index_.

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

646 { 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 652 of file RelAlgDagBuilder.h.

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

652  {
653  if (!hash_) {
654  hash_ = typeid(RexRef).hash_code();
655  boost::hash_combine(*hash_, index_);
656  }
657  return *hash_;
658  }
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 ( ) const
inlineoverridevirtual

Implements Rex.

Definition at line 648 of file RelAlgDagBuilder.h.

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

648  {
649  return cat(::typeName(this), "(", std::to_string(index_), ")");
650  }
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:93

+ Here is the call graph for this function:

Member Data Documentation

const size_t RexRef::index_
private

Definition at line 663 of file RelAlgDagBuilder.h.

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


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