OmniSciDB  c1a53651b2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{RuntimeFunctions.cpp} Namespace Reference

Enumerations

enum  AggFuncType { AggFuncType::MIN, AggFuncType::MAX, AggFuncType::SUM }
 

Functions

template<AggFuncType AGG_FUNC_TYPE, typename AGG_TYPE >
AGG_TYPE agg_func (AGG_TYPE const lhs, AGG_TYPE const rhs)
 

Enumeration Type Documentation

enum anonymous_namespace{RuntimeFunctions.cpp}::AggFuncType
strong

Function Documentation

template<AggFuncType AGG_FUNC_TYPE, typename AGG_TYPE >
AGG_TYPE anonymous_namespace{RuntimeFunctions.cpp}::agg_func ( AGG_TYPE const  lhs,
AGG_TYPE const  rhs 
)
inline

Definition at line 829 of file RuntimeFunctions.cpp.

References MAX, and MIN.

Referenced by query_template_impl().

829  {
830  if constexpr (AGG_FUNC_TYPE == AggFuncType::MIN) {
831  return std::min(lhs, rhs);
832  } else if constexpr (AGG_FUNC_TYPE == AggFuncType::MAX) {
833  return std::max(lhs, rhs);
834  } else {
835  return lhs + rhs;
836  }
837 }

+ Here is the caller graph for this function: