OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ComputeAgg< RasterAggType::SUM > Struct Template Reference

#include <GeoRasterTableFunctions.hpp>

Public Member Functions

template<typename Z , typename Z2 >
void operator() (const Z2 &input_z, Z &output_z, const Z2 input_sentinel) const
 

Detailed Description

template<>
struct ComputeAgg< RasterAggType::SUM >

Definition at line 75 of file GeoRasterTableFunctions.hpp.

Member Function Documentation

template<typename Z , typename Z2 >
void ComputeAgg< RasterAggType::SUM >::operator() ( const Z2 &  input_z,
Z &  output_z,
const Z2  input_sentinel 
) const
inline

Definition at line 77 of file GeoRasterTableFunctions.hpp.

77  {
78  if (input_z != input_sentinel) {
79  output_z =
80  output_z == std::numeric_limits<Z>::lowest() ? input_z : output_z + input_z;
81  }
82  }

The documentation for this struct was generated from the following file: