OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AggregatedColRange Class Reference

#include <AggregatedColRange.h>

Public Member Functions

ExpressionRange getColRange (const PhysicalInput &) const
 
void setColRange (const PhysicalInput &, const ExpressionRange &)
 
const std::unordered_map
< PhysicalInput,
ExpressionRange > & 
asMap () const
 
void clear ()
 

Private Attributes

std::unordered_map
< PhysicalInput,
ExpressionRange
cache_
 

Detailed Description

Definition at line 33 of file AggregatedColRange.h.

Member Function Documentation

const std::unordered_map< PhysicalInput, ExpressionRange > & AggregatedColRange::asMap ( ) const

Definition at line 31 of file AggregatedColRange.cpp.

References cache_.

32  {
33  return cache_;
34 }
std::unordered_map< PhysicalInput, ExpressionRange > cache_
void AggregatedColRange::clear ( )

Definition at line 36 of file AggregatedColRange.cpp.

References cache_.

36  {
37  decltype(cache_)().swap(cache_);
38 }
std::unordered_map< PhysicalInput, ExpressionRange > cache_
ExpressionRange AggregatedColRange::getColRange ( const PhysicalInput phys_input) const

Definition at line 19 of file AggregatedColRange.cpp.

References cache_, and CHECK().

19  {
20  const auto it = cache_.find(phys_input);
21  CHECK(it != cache_.end());
22  return it->second;
23 }
CHECK(cgen_state)
std::unordered_map< PhysicalInput, ExpressionRange > cache_

+ Here is the call graph for this function:

void AggregatedColRange::setColRange ( const PhysicalInput phys_input,
const ExpressionRange expr_range 
)

Definition at line 25 of file AggregatedColRange.cpp.

References cache_, and CHECK().

Referenced by Executor::computeColRangesCache().

26  {
27  const auto it_ok = cache_.emplace(phys_input, expr_range);
28  CHECK(it_ok.second);
29 }
CHECK(cgen_state)
std::unordered_map< PhysicalInput, ExpressionRange > cache_

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::unordered_map<PhysicalInput, ExpressionRange> AggregatedColRange::cache_
private

Definition at line 44 of file AggregatedColRange.h.

Referenced by asMap(), clear(), getColRange(), and setColRange().


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