OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{ResultSet.cpp}::IsAggKind Struct Reference

Public Member Functions

 IsAggKind (std::vector< TargetInfo > const &targets, SQLAgg const agg_kind)
bool operator() (Analyzer::OrderEntry const &order_entry) const

Public Attributes

std::vector< TargetInfo > const & targets_
SQLAgg const agg_kind_

Detailed Description

Definition at line 970 of file ResultSet.cpp.

Constructor & Destructor Documentation

anonymous_namespace{ResultSet.cpp}::IsAggKind::IsAggKind ( std::vector< TargetInfo > const &  targets,
SQLAgg const  agg_kind 

Definition at line 973 of file ResultSet.cpp.

974  : targets_(targets), agg_kind_(agg_kind) {}
std::vector< TargetInfo > const & targets_
Definition: ResultSet.cpp:971

Member Function Documentation

bool anonymous_namespace{ResultSet.cpp}::IsAggKind::operator() ( Analyzer::OrderEntry const &  order_entry) const

Definition at line 975 of file ResultSet.cpp.

References Analyzer::OrderEntry::tle_no.

975  {
976  return targets_[order_entry.tle_no - 1].agg_kind == agg_kind_;
977  }
std::vector< TargetInfo > const & targets_
Definition: ResultSet.cpp:971

Member Data Documentation

SQLAgg const anonymous_namespace{ResultSet.cpp}::IsAggKind::agg_kind_

Definition at line 972 of file ResultSet.cpp.

std::vector<TargetInfo> const& anonymous_namespace{ResultSet.cpp}::IsAggKind::targets_

Definition at line 971 of file ResultSet.cpp.

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