OmniSciDB  a5dc49c757
 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 835 of file RuntimeFunctions.cpp.

References MAX, and MIN.

Referenced by query_template().

835  {
836  if constexpr (AGG_FUNC_TYPE == AggFuncType::MIN) {
837  return std::min(lhs, rhs);
838  } else if constexpr (AGG_FUNC_TYPE == AggFuncType::MAX) {
839  return std::max(lhs, rhs);
840  } else {
841  return lhs + rhs;
842  }
843 }

+ Here is the caller graph for this function: