OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ExpressionRange.h File Reference
#include "../Analyzer/Analyzer.h"
#include <boost/multiprecision/cpp_int.hpp>
#include <boost/optional.hpp>
+ Include dependency graph for ExpressionRange.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ExpressionRange
 

Typedefs

typedef
boost::multiprecision::number
< boost::multiprecision::cpp_int_backend
< 64, 64, boost::multiprecision::signed_magnitude,
boost::multiprecision::checked,
void > > 
checked_int64_t
 

Enumerations

enum  ExpressionRangeType {
  ExpressionRangeType::Invalid, ExpressionRangeType::Integer, ExpressionRangeType::Float, ExpressionRangeType::Double,
  ExpressionRangeType::Null
}
 

Functions

template<typename T >
getMin (const ExpressionRange &other)
 
template<typename T >
getMax (const ExpressionRange &other)
 
template<typename T >
get_value_from_datum (const Datum datum, const SQLTypes type_info) noexcept
 
template<>
int64_t getMin< int64_t > (const ExpressionRange &e)
 
template<>
float getMin< float > (const ExpressionRange &e)
 
template<>
double getMin< double > (const ExpressionRange &e)
 
template<>
int64_t getMax< int64_t > (const ExpressionRange &e)
 
template<>
float getMax< float > (const ExpressionRange &e)
 
template<>
double getMax< double > (const ExpressionRange &e)
 
template<>
int64_t get_value_from_datum (const Datum datum, const SQLTypes type_info) noexcept
 
template<>
double get_value_from_datum (const Datum datum, const SQLTypes type_info) noexcept
 
void apply_int_qual (const Datum const_datum, const SQLTypes const_type, const SQLOps sql_op, ExpressionRange &qual_range)
 
void apply_fp_qual (const Datum const_datum, const SQLTypes const_type, const SQLOps sql_op, ExpressionRange &qual_range)
 
void apply_hpt_qual (const Datum const_datum, const SQLTypes const_type, const int32_t const_dimen, const int32_t col_dimen, const SQLOps sql_op, ExpressionRange &qual_range)
 
ExpressionRange apply_simple_quals (const Analyzer::ColumnVar *, const ExpressionRange &, const boost::optional< std::list< std::shared_ptr< Analyzer::Expr >>>=boost::none)
 
ExpressionRange getLeafColumnRange (const Analyzer::ColumnVar *, const std::vector< InputTableInfo > &, const Executor *, const bool is_outer_join_proj)
 
ExpressionRange getExpressionRange (const Analyzer::Expr *, const std::vector< InputTableInfo > &, const Executor *, boost::optional< std::list< std::shared_ptr< Analyzer::Expr >>>=boost::none)
 

Typedef Documentation

typedef boost::multiprecision::number< boost::multiprecision::cpp_int_backend<64, 64, boost::multiprecision::signed_magnitude, boost::multiprecision::checked, void> > checked_int64_t

Definition at line 30 of file ExpressionRange.h.

Enumeration Type Documentation

Function Documentation

void apply_fp_qual ( const Datum  const_datum,
const SQLTypes  const_type,
const SQLOps  sql_op,
ExpressionRange qual_range 
)

Definition at line 73 of file ExpressionRange.cpp.

References kEQ, kGE, kGT, kLE, and kLT.

Referenced by apply_simple_quals().

76  {
77  double const_val = get_value_from_datum<double>(const_datum, const_type);
78  switch (sql_op) {
79  case kGT:
80  case kGE:
81  qual_range.setFpMin(std::max(qual_range.getFpMin(), const_val));
82  break;
83  case kLT:
84  case kLE:
85  qual_range.setFpMax(std::min(qual_range.getFpMax(), const_val));
86  break;
87  case kEQ:
88  qual_range.setFpMin(std::max(qual_range.getFpMin(), const_val));
89  qual_range.setFpMax(std::min(qual_range.getFpMax(), const_val));
90  break;
91  default: // there may be other operators, but don't do anything with them
92  break;
93  }
94 }
Definition: sqldefs.h:35
Definition: sqldefs.h:36
Definition: sqldefs.h:30
Definition: sqldefs.h:34
double getFpMax() const
double getFpMin() const
void setFpMax(const double fp_max)
Definition: sqldefs.h:33
void setFpMin(const double fp_min)

+ Here is the caller graph for this function:

void apply_hpt_qual ( const Datum  const_datum,
const SQLTypes  const_type,
const int32_t  const_dimen,
const int32_t  col_dimen,
const SQLOps  sql_op,
ExpressionRange qual_range 
)

Definition at line 123 of file ExpressionRange.cpp.

References apply_int_qual(), Datum::bigintval, CHECK(), and DateTimeUtils::get_timestamp_precision_scale().

Referenced by apply_simple_quals().

128  {
129  CHECK(const_dimen != col_dimen);
130  Datum datum{0};
131  if (const_dimen > col_dimen) {
132  datum.bigintval =
133  get_value_from_datum<int64_t>(const_datum, const_type) /
134  DateTimeUtils::get_timestamp_precision_scale(const_dimen - col_dimen);
135  } else {
136  datum.bigintval =
137  get_value_from_datum<int64_t>(const_datum, const_type) *
138  DateTimeUtils::get_timestamp_precision_scale(col_dimen - const_dimen);
139  }
140  apply_int_qual(datum, const_type, sql_op, qual_range);
141 }
void apply_int_qual(const Datum const_datum, const SQLTypes const_type, const SQLOps sql_op, ExpressionRange &qual_range)
CHECK(cgen_state)
int64_t bigintval
Definition: sqltypes.h:129
constexpr int64_t get_timestamp_precision_scale(const int32_t dimen)
Definition: DateTimeUtils.h:48

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void apply_int_qual ( const Datum  const_datum,
const SQLTypes  const_type,
const SQLOps  sql_op,
ExpressionRange qual_range 
)

Definition at line 96 of file ExpressionRange.cpp.

References ExpressionRange::getIntMax(), ExpressionRange::getIntMin(), kEQ, kGE, kGT, kLE, kLT, ExpressionRange::setIntMax(), and ExpressionRange::setIntMin().

Referenced by apply_hpt_qual(), and apply_simple_quals().

99  {
100  int64_t const_val = get_value_from_datum<int64_t>(const_datum, const_type);
101  switch (sql_op) {
102  case kGT:
103  qual_range.setIntMin(std::max(qual_range.getIntMin(), const_val + 1));
104  break;
105  case kGE:
106  qual_range.setIntMin(std::max(qual_range.getIntMin(), const_val));
107  break;
108  case kLT:
109  qual_range.setIntMax(std::min(qual_range.getIntMax(), const_val - 1));
110  break;
111  case kLE:
112  qual_range.setIntMax(std::min(qual_range.getIntMax(), const_val));
113  break;
114  case kEQ:
115  qual_range.setIntMin(std::max(qual_range.getIntMin(), const_val));
116  qual_range.setIntMax(std::min(qual_range.getIntMax(), const_val));
117  break;
118  default: // there may be other operators, but don't do anything with them
119  break;
120  }
121 }
int64_t getIntMin() const
Definition: sqldefs.h:35
Definition: sqldefs.h:36
Definition: sqldefs.h:30
void setIntMin(const int64_t int_min)
Definition: sqldefs.h:34
void setIntMax(const int64_t int_max)
int64_t getIntMax() const
Definition: sqldefs.h:33

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ExpressionRange apply_simple_quals ( const Analyzer::ColumnVar ,
const ExpressionRange ,
const boost::optional< std::list< std::shared_ptr< Analyzer::Expr >>>  = boost::none 
)

Definition at line 143 of file ExpressionRange.cpp.

References apply_fp_qual(), apply_hpt_qual(), apply_int_qual(), Double, Float, Analyzer::ColumnVar::get_column_id(), Analyzer::ColumnVar::get_table_id(), ExpressionRange::getIntMax(), ExpressionRange::getIntMin(), ExpressionRange::getType(), ExpressionRange::hasNulls(), Integer, and ExpressionRange::makeIntRange().

Referenced by getExpressionRange().

146  {
147  if (!simple_quals) {
148  return col_range;
149  }
150  ExpressionRange qual_range(col_range);
151  for (auto const& itr : simple_quals.get()) {
152  auto qual_bin_oper = dynamic_cast<Analyzer::BinOper*>(itr.get());
153  if (!qual_bin_oper) {
154  continue;
155  }
156  const Analyzer::Expr* left_operand = qual_bin_oper->get_left_operand();
157  auto qual_col = dynamic_cast<const Analyzer::ColumnVar*>(left_operand);
158  if (!qual_col) {
159  // Check for possibility that column is wrapped in a cast
160  // Presumes that only simple casts (i.e. timestamp to timestamp or int to int) have
161  // been passed through by BinOper::normalize_simple_predicate
162  auto u_expr = dynamic_cast<const Analyzer::UOper*>(left_operand);
163  if (!u_expr) {
164  continue;
165  }
166  qual_col = dynamic_cast<const Analyzer::ColumnVar*>(u_expr->get_operand());
167  if (!qual_col) {
168  continue;
169  }
170  }
171  if (qual_col->get_table_id() != col_expr->get_table_id() ||
172  qual_col->get_column_id() != col_expr->get_column_id()) {
173  continue;
174  }
175  const Analyzer::Expr* right_operand = qual_bin_oper->get_right_operand();
176  auto qual_const = dynamic_cast<const Analyzer::Constant*>(right_operand);
177  if (!qual_const) {
178  continue;
179  }
180  if (qual_range.getType() == ExpressionRangeType::Float ||
181  qual_range.getType() == ExpressionRangeType::Double) {
182  apply_fp_qual(qual_const->get_constval(),
183  qual_const->get_type_info().get_type(),
184  qual_bin_oper->get_optype(),
185  qual_range);
186  } else if ((qual_col->get_type_info().is_timestamp() ||
187  qual_const->get_type_info().is_timestamp()) &&
188  (qual_col->get_type_info().get_dimension() !=
189  qual_const->get_type_info().get_dimension())) {
190  apply_hpt_qual(qual_const->get_constval(),
191  qual_const->get_type_info().get_type(),
192  qual_const->get_type_info().get_dimension(),
193  qual_col->get_type_info().get_dimension(),
194  qual_bin_oper->get_optype(),
195  qual_range);
196  } else {
197  apply_int_qual(qual_const->get_constval(),
198  qual_const->get_type_info().get_type(),
199  qual_bin_oper->get_optype(),
200  qual_range);
201  }
202  }
203  if (qual_range.getType() == ExpressionRangeType::Integer) {
204  if (qual_range.getIntMin() > qual_range.getIntMax()) {
205  return ExpressionRange::makeIntRange(0, -1, 0, qual_range.hasNulls());
206  }
207  }
208  return qual_range;
209 }
void apply_hpt_qual(const Datum const_datum, const SQLTypes const_type, const int32_t const_dimen, const int32_t col_dimen, const SQLOps sql_op, ExpressionRange &qual_range)
void apply_int_qual(const Datum const_datum, const SQLTypes const_type, const SQLOps sql_op, ExpressionRange &qual_range)
void apply_fp_qual(const Datum const_datum, const SQLTypes const_type, const SQLOps sql_op, ExpressionRange &qual_range)
static ExpressionRange makeIntRange(const int64_t int_min, const int64_t int_max, const int64_t bucket, const bool has_nulls)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename T >
T get_value_from_datum ( const Datum  datum,
const SQLTypes  type_info 
)
inlinenoexcept

Definition at line 251 of file ExpressionRange.h.

References kBIGINT, kBOOLEAN, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kINT, kNUMERIC, kSMALLINT, kTIME, kTIMESTAMP, kTINYINT, and UNREACHABLE.

252  {
253  switch (type_info) {
254  case kBOOLEAN:
255  return datum.boolval;
256  case kTINYINT:
257  return datum.tinyintval;
258  case kSMALLINT:
259  return datum.smallintval;
260  case kINT:
261  return datum.intval;
262  case kBIGINT:
263  return datum.bigintval;
264  case kTIME:
265  case kTIMESTAMP:
266  case kDATE:
267  return datum.bigintval;
268  case kNUMERIC:
269  case kDECIMAL: {
270  return datum.bigintval;
271  break;
272  }
273  default:
274  UNREACHABLE();
275  }
276  return (int64_t)0;
277 }
int8_t tinyintval
Definition: sqltypes.h:126
Definition: sqltypes.h:52
bool boolval
Definition: sqltypes.h:125
#define UNREACHABLE()
Definition: Logger.h:234
int32_t intval
Definition: sqltypes.h:128
int64_t bigintval
Definition: sqltypes.h:129
int16_t smallintval
Definition: sqltypes.h:127
Definition: sqltypes.h:56
Definition: sqltypes.h:48
template<>
int64_t get_value_from_datum ( const Datum  datum,
const SQLTypes  type_info 
)
inlinenoexcept

Definition at line 251 of file ExpressionRange.h.

References kBIGINT, kBOOLEAN, kDATE, kDECIMAL, kINT, kNUMERIC, kSMALLINT, kTIME, kTIMESTAMP, kTINYINT, and UNREACHABLE.

252  {
253  switch (type_info) {
254  case kBOOLEAN:
255  return datum.boolval;
256  case kTINYINT:
257  return datum.tinyintval;
258  case kSMALLINT:
259  return datum.smallintval;
260  case kINT:
261  return datum.intval;
262  case kBIGINT:
263  return datum.bigintval;
264  case kTIME:
265  case kTIMESTAMP:
266  case kDATE:
267  return datum.bigintval;
268  case kNUMERIC:
269  case kDECIMAL: {
270  return datum.bigintval;
271  break;
272  }
273  default:
274  UNREACHABLE();
275  }
276  return (int64_t)0;
277 }
int8_t tinyintval
Definition: sqltypes.h:126
Definition: sqltypes.h:52
bool boolval
Definition: sqltypes.h:125
#define UNREACHABLE()
Definition: Logger.h:234
int32_t intval
Definition: sqltypes.h:128
int64_t bigintval
Definition: sqltypes.h:129
int16_t smallintval
Definition: sqltypes.h:127
Definition: sqltypes.h:56
Definition: sqltypes.h:48
template<>
double get_value_from_datum ( const Datum  datum,
const SQLTypes  type_info 
)
inlinenoexcept

Definition at line 280 of file ExpressionRange.h.

References kDOUBLE, kFLOAT, and UNREACHABLE.

280  {
281  switch (type_info) {
282  case kFLOAT:
283  return datum.floatval;
284  case kDOUBLE:
285  return datum.doubleval;
286  default:
287  UNREACHABLE();
288  }
289  return 0.0;
290 }
#define UNREACHABLE()
Definition: Logger.h:234
float floatval
Definition: sqltypes.h:130
double doubleval
Definition: sqltypes.h:131
ExpressionRange getExpressionRange ( const Analyzer::Expr ,
const std::vector< InputTableInfo > &  ,
const Executor ,
boost::optional< std::list< std::shared_ptr< Analyzer::Expr >>>  = boost::none 
)

Definition at line 330 of file ExpressionRange.cpp.

References Analyzer::Expr::get_type_info(), getExpressionRange(), ExpressionRange::makeInvalidRange(), and ExpressionRange::typeSupportsRange().

334  {
335  const auto& expr_ti = expr->get_type_info();
336  if (!ExpressionRange::typeSupportsRange(expr_ti)) {
338  }
339  auto bin_oper_expr = dynamic_cast<const Analyzer::BinOper*>(expr);
340  if (bin_oper_expr) {
341  return getExpressionRange(bin_oper_expr, query_infos, executor, simple_quals);
342  }
343  auto constant_expr = dynamic_cast<const Analyzer::Constant*>(expr);
344  if (constant_expr) {
345  return getExpressionRange(constant_expr);
346  }
347  auto column_var_expr = dynamic_cast<const Analyzer::ColumnVar*>(expr);
348  if (column_var_expr) {
349  return getExpressionRange(column_var_expr, query_infos, executor, simple_quals);
350  }
351  auto like_expr = dynamic_cast<const Analyzer::LikeExpr*>(expr);
352  if (like_expr) {
353  return getExpressionRange(like_expr);
354  }
355  auto case_expr = dynamic_cast<const Analyzer::CaseExpr*>(expr);
356  if (case_expr) {
357  return getExpressionRange(case_expr, query_infos, executor);
358  }
359  auto u_expr = dynamic_cast<const Analyzer::UOper*>(expr);
360  if (u_expr) {
361  return getExpressionRange(u_expr, query_infos, executor, simple_quals);
362  }
363  auto extract_expr = dynamic_cast<const Analyzer::ExtractExpr*>(expr);
364  if (extract_expr) {
365  return getExpressionRange(extract_expr, query_infos, executor, simple_quals);
366  }
367  auto datetrunc_expr = dynamic_cast<const Analyzer::DatetruncExpr*>(expr);
368  if (datetrunc_expr) {
369  return getExpressionRange(datetrunc_expr, query_infos, executor, simple_quals);
370  }
372 }
ExpressionRange getExpressionRange(const Analyzer::BinOper *expr, const std::vector< InputTableInfo > &query_infos, const Executor *, boost::optional< std::list< std::shared_ptr< Analyzer::Expr >>> simple_quals)
static bool typeSupportsRange(const SQLTypeInfo &ti)
static ExpressionRange makeInvalidRange()

+ Here is the call graph for this function:

ExpressionRange getLeafColumnRange ( const Analyzer::ColumnVar ,
const std::vector< InputTableInfo > &  ,
const Executor ,
const bool  is_outer_join_proj 
)

Definition at line 534 of file ExpressionRange.cpp.

References CHECK(), CHECK_EQ, CHECK_GT, CHECK_NE, dtDAY, extract_max_stat(), anonymous_namespace{ExpressionRange.cpp}::extract_max_stat_double(), extract_min_stat(), anonymous_namespace{ExpressionRange.cpp}::extract_min_stat_double(), FIND_STAT_FRAG, Analyzer::ColumnVar::get_column_id(), anonymous_namespace{ExpressionRange.cpp}::get_conservative_datetrunc_bucket(), SQLTypeInfoCore< TYPE_FACET_PACK >::get_elem_type(), get_logical_type_info(), Analyzer::ColumnVar::get_table_id(), Analyzer::Expr::get_type_info(), SQLTypeInfoCore< TYPE_FACET_PACK >::is_array(), kBIGINT, kBOOLEAN, kCHAR, kDATE, kDECIMAL, kDOUBLE, kENCODING_DICT, kFLOAT, kINT, kNUMERIC, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, kTINYINT, kVARCHAR, ExpressionRange::makeDoubleRange(), ExpressionRange::makeFloatRange(), ExpressionRange::makeIntRange(), and ExpressionRange::makeInvalidRange().

Referenced by Executor::computeColRangesCache(), and getExpressionRange().

537  {
538  bool has_nulls = is_outer_join_proj;
539  int col_id = col_expr->get_column_id();
540  const auto& col_phys_ti = col_expr->get_type_info().is_array()
541  ? col_expr->get_type_info().get_elem_type()
542  : col_expr->get_type_info();
543  const auto col_ti = get_logical_type_info(col_phys_ti);
544  switch (col_ti.get_type()) {
545  case kTEXT:
546  case kCHAR:
547  case kVARCHAR:
548  CHECK_EQ(kENCODING_DICT, col_ti.get_compression());
549  case kBOOLEAN:
550  case kTINYINT:
551  case kSMALLINT:
552  case kINT:
553  case kBIGINT:
554  case kDECIMAL:
555  case kNUMERIC:
556  case kDATE:
557  case kTIMESTAMP:
558  case kTIME:
559  case kFLOAT:
560  case kDOUBLE: {
561  ssize_t ti_idx = -1;
562  for (size_t i = 0; i < query_infos.size(); ++i) {
563  if (col_expr->get_table_id() == query_infos[i].table_id) {
564  ti_idx = i;
565  break;
566  }
567  }
568  CHECK_NE(ssize_t(-1), ti_idx);
569  const auto& query_info = query_infos[ti_idx].info;
570  const auto& fragments = query_info.fragments;
571  const auto cd = executor->getColumnDescriptor(col_expr);
572  if (cd && cd->isVirtualCol) {
573  CHECK(cd->columnName == "rowid");
574  CHECK_EQ(kBIGINT, col_ti.get_type());
575  const int64_t num_tuples = query_info.getNumTuples();
577  0, std::max(num_tuples - 1, int64_t(0)), 0, has_nulls);
578  }
579  if (query_info.getNumTuples() == 0) {
580  // The column doesn't contain any values, synthesize an empty range.
581  if (col_ti.is_fp()) {
582  return col_ti.get_type() == kFLOAT
583  ? ExpressionRange::makeFloatRange(0, -1, false)
584  : ExpressionRange::makeDoubleRange(0, -1, false);
585  }
586  return ExpressionRange::makeIntRange(0, -1, 0, false);
587  }
588  std::vector<size_t> nonempty_fragment_indices;
589  for (size_t i = 0; i < fragments.size(); ++i) {
590  const auto& fragment = fragments[i];
591  if (!fragment.isEmptyPhysicalFragment()) {
592  nonempty_fragment_indices.push_back(i);
593  }
594  }
595  FIND_STAT_FRAG(min);
596  FIND_STAT_FRAG(max);
597  const auto& min_frag = fragments[*min_frag_index];
598  const auto min_it = min_frag.getChunkMetadataMap().find(col_id);
599  if (min_it == min_frag.getChunkMetadataMap().end()) {
601  }
602  const auto& max_frag = fragments[*max_frag_index];
603  const auto max_it = max_frag.getChunkMetadataMap().find(col_id);
604  CHECK(max_it != max_frag.getChunkMetadataMap().end());
605  for (const auto& fragment : fragments) {
606  const auto it = fragment.getChunkMetadataMap().find(col_id);
607  if (it != fragment.getChunkMetadataMap().end()) {
608  if (it->second.chunkStats.has_nulls) {
609  has_nulls = true;
610  break;
611  }
612  }
613  }
614  if (col_ti.is_fp()) {
615  const auto min_val = extract_min_stat_double(min_it->second.chunkStats, col_ti);
616  const auto max_val = extract_max_stat_double(max_it->second.chunkStats, col_ti);
617  return col_ti.get_type() == kFLOAT
618  ? ExpressionRange::makeFloatRange(min_val, max_val, has_nulls)
619  : ExpressionRange::makeDoubleRange(min_val, max_val, has_nulls);
620  }
621  const auto min_val = extract_min_stat(min_it->second.chunkStats, col_ti);
622  const auto max_val = extract_max_stat(max_it->second.chunkStats, col_ti);
623  if (max_val < min_val) {
624  // The column doesn't contain any non-null values, synthesize an empty range.
625  CHECK_GT(min_val, 0);
626  return ExpressionRange::makeIntRange(0, -1, 0, has_nulls);
627  }
628  const int64_t bucket =
629  col_ti.get_type() == kDATE ? get_conservative_datetrunc_bucket(dtDAY) : 0;
630  return ExpressionRange::makeIntRange(min_val, max_val, bucket, has_nulls);
631  }
632  default:
633  break;
634  }
636 }
#define CHECK_EQ(x, y)
Definition: Logger.h:198
#define FIND_STAT_FRAG(stat_name)
Definition: sqltypes.h:52
double extract_min_stat_double(const ChunkStats &stats, const SQLTypeInfo &col_ti)
SQLTypeInfo get_logical_type_info(const SQLTypeInfo &type_info)
Definition: sqltypes.h:869
#define CHECK_GT(x, y)
Definition: Logger.h:202
static ExpressionRange makeFloatRange(const float fp_min, const float fp_max, const bool has_nulls)
CHECK(cgen_state)
int64_t get_conservative_datetrunc_bucket(const DatetruncField datetrunc_field)
#define CHECK_NE(x, y)
Definition: Logger.h:199
static ExpressionRange makeIntRange(const int64_t int_min, const int64_t int_max, const int64_t bucket, const bool has_nulls)
Definition: sqltypes.h:55
Definition: sqltypes.h:56
Definition: sqltypes.h:44
int64_t extract_min_stat(const ChunkStats &stats, const SQLTypeInfo &ti)
bool g_enable_watchdog false
Definition: Execute.cpp:71
Definition: sqltypes.h:48
static ExpressionRange makeInvalidRange()
double extract_max_stat_double(const ChunkStats &stats, const SQLTypeInfo &col_ti)
int64_t extract_max_stat(const ChunkStats &stats, const SQLTypeInfo &ti)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename T >
T getMax ( const ExpressionRange other)
template<>
double getMax< double > ( const ExpressionRange e)
inline

Definition at line 246 of file ExpressionRange.h.

246  {
247  return e.getFpMax();
248 }
double getFpMax() const
template<>
float getMax< float > ( const ExpressionRange e)
inline

Definition at line 241 of file ExpressionRange.h.

241  {
242  return e.getFpMax();
243 }
double getFpMax() const
template<>
int64_t getMax< int64_t > ( const ExpressionRange e)
inline

Definition at line 236 of file ExpressionRange.h.

236  {
237  return e.getIntMax();
238 }
int64_t getIntMax() const
template<typename T >
T getMin ( const ExpressionRange other)
template<>
double getMin< double > ( const ExpressionRange e)
inline

Definition at line 231 of file ExpressionRange.h.

231  {
232  return e.getFpMin();
233 }
double getFpMin() const
template<>
float getMin< float > ( const ExpressionRange e)
inline

Definition at line 226 of file ExpressionRange.h.

226  {
227  return e.getFpMin();
228 }
double getFpMin() const
template<>
int64_t getMin< int64_t > ( const ExpressionRange e)
inline

Definition at line 221 of file ExpressionRange.h.

221  {
222  return e.getIntMin();
223 }
int64_t getIntMin() const