OmniSciDB  340b00dbf6
 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

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

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

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

Definition at line 29 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)
int64_t bigintval
Definition: sqltypes.h:209
#define CHECK(condition)
Definition: Logger.h:197
constexpr int64_t get_timestamp_precision_scale(const int32_t dimen)
Definition: DateTimeUtils.h:51

+ 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(), and ExpressionRange::getType().

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  return qual_range;
204 }
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)

+ 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 250 of file ExpressionRange.h.

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

251  {
252  switch (type_info) {
253  case kBOOLEAN:
254  return datum.boolval;
255  case kTINYINT:
256  return datum.tinyintval;
257  case kSMALLINT:
258  return datum.smallintval;
259  case kINT:
260  return datum.intval;
261  case kBIGINT:
262  return datum.bigintval;
263  case kTIME:
264  case kTIMESTAMP:
265  case kDATE:
266  return datum.bigintval;
267  case kNUMERIC:
268  case kDECIMAL: {
269  return datum.bigintval;
270  break;
271  }
272  default:
273  UNREACHABLE();
274  }
275  return (int64_t)0;
276 }
int8_t tinyintval
Definition: sqltypes.h:206
Definition: sqltypes.h:51
bool boolval
Definition: sqltypes.h:205
#define UNREACHABLE()
Definition: Logger.h:241
int32_t intval
Definition: sqltypes.h:208
int64_t bigintval
Definition: sqltypes.h:209
int16_t smallintval
Definition: sqltypes.h:207
Definition: sqltypes.h:55
Definition: sqltypes.h:47
template<>
int64_t get_value_from_datum ( const Datum  datum,
const SQLTypes  type_info 
)
inlinenoexcept

Definition at line 250 of file ExpressionRange.h.

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

251  {
252  switch (type_info) {
253  case kBOOLEAN:
254  return datum.boolval;
255  case kTINYINT:
256  return datum.tinyintval;
257  case kSMALLINT:
258  return datum.smallintval;
259  case kINT:
260  return datum.intval;
261  case kBIGINT:
262  return datum.bigintval;
263  case kTIME:
264  case kTIMESTAMP:
265  case kDATE:
266  return datum.bigintval;
267  case kNUMERIC:
268  case kDECIMAL: {
269  return datum.bigintval;
270  break;
271  }
272  default:
273  UNREACHABLE();
274  }
275  return (int64_t)0;
276 }
int8_t tinyintval
Definition: sqltypes.h:206
Definition: sqltypes.h:51
bool boolval
Definition: sqltypes.h:205
#define UNREACHABLE()
Definition: Logger.h:241
int32_t intval
Definition: sqltypes.h:208
int64_t bigintval
Definition: sqltypes.h:209
int16_t smallintval
Definition: sqltypes.h:207
Definition: sqltypes.h:55
Definition: sqltypes.h:47
template<>
double get_value_from_datum ( const Datum  datum,
const SQLTypes  type_info 
)
inlinenoexcept

Definition at line 279 of file ExpressionRange.h.

References kDOUBLE, kFLOAT, and UNREACHABLE.

279  {
280  switch (type_info) {
281  case kFLOAT:
282  return datum.floatval;
283  case kDOUBLE:
284  return datum.doubleval;
285  default:
286  UNREACHABLE();
287  }
288  return 0.0;
289 }
#define UNREACHABLE()
Definition: Logger.h:241
float floatval
Definition: sqltypes.h:210
double doubleval
Definition: sqltypes.h:211
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 325 of file ExpressionRange.cpp.

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

329  {
330  const auto& expr_ti = expr->get_type_info();
331  if (!ExpressionRange::typeSupportsRange(expr_ti)) {
333  }
334  auto bin_oper_expr = dynamic_cast<const Analyzer::BinOper*>(expr);
335  if (bin_oper_expr) {
336  return getExpressionRange(bin_oper_expr, query_infos, executor, simple_quals);
337  }
338  auto constant_expr = dynamic_cast<const Analyzer::Constant*>(expr);
339  if (constant_expr) {
340  return getExpressionRange(constant_expr);
341  }
342  auto column_var_expr = dynamic_cast<const Analyzer::ColumnVar*>(expr);
343  if (column_var_expr) {
344  return getExpressionRange(column_var_expr, query_infos, executor, simple_quals);
345  }
346  auto like_expr = dynamic_cast<const Analyzer::LikeExpr*>(expr);
347  if (like_expr) {
348  return getExpressionRange(like_expr);
349  }
350  auto case_expr = dynamic_cast<const Analyzer::CaseExpr*>(expr);
351  if (case_expr) {
352  return getExpressionRange(case_expr, query_infos, executor);
353  }
354  auto u_expr = dynamic_cast<const Analyzer::UOper*>(expr);
355  if (u_expr) {
356  return getExpressionRange(u_expr, query_infos, executor, simple_quals);
357  }
358  auto extract_expr = dynamic_cast<const Analyzer::ExtractExpr*>(expr);
359  if (extract_expr) {
360  return getExpressionRange(extract_expr, query_infos, executor, simple_quals);
361  }
362  auto datetrunc_expr = dynamic_cast<const Analyzer::DatetruncExpr*>(expr);
363  if (datetrunc_expr) {
364  return getExpressionRange(datetrunc_expr, query_infos, executor, simple_quals);
365  }
367 }
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 531 of file ExpressionRange.cpp.

References CHECK, CHECK_EQ, CHECK_GT, 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(), SQLTypeInfo::get_elem_type(), get_logical_type_info(), Analyzer::ColumnVar::get_table_id(), Analyzer::Expr::get_type_info(), SQLTypeInfo::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().

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

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

Definition at line 240 of file ExpressionRange.h.

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

Definition at line 235 of file ExpressionRange.h.

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

Definition at line 230 of file ExpressionRange.h.

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

Definition at line 225 of file ExpressionRange.h.

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

Definition at line 220 of file ExpressionRange.h.

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