OmniSciDB  b28c0d5765
 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 805 of file RuntimeFunctions.cpp.

References MAX, and MIN.

Referenced by query_template_impl().

805  {
806  if constexpr (AGG_FUNC_TYPE == AggFuncType::MIN) {
807  return std::min(lhs, rhs);
808  } else if constexpr (AGG_FUNC_TYPE == AggFuncType::MAX) {
809  return std::max(lhs, rhs);
810  } else {
811  return lhs + rhs;
812  }
813 }

+ Here is the caller graph for this function: