#include <AggMode.h>
Definition at line 30 of file AggMode.h.
void AggMode::add |
( |
Value const |
value | ) |
|
|
inline |
std::optional<Value> AggMode::mode |
( |
| ) |
const |
|
inline |
Definition at line 56 of file AggMode.h.
References map_.
58 auto const itr = std::max_element(
map_.begin(),
map_.end(), ByCount{});
59 return itr ==
map_.end() ? std::nullopt : std::make_optional(itr->first);
void AggMode::reduce |
( |
AggMode && |
rhs | ) |
|
|
inline |
void AggMode::reduceMap |
( |
Map const & |
map | ) |
|
|
inlineprivate |
Definition at line 63 of file AggMode.h.
References map_.
Referenced by reduce().
64 for (Map::value_type
const& pair : map) {
65 auto const [itr, emplaced] =
map_.emplace(pair);
67 itr->second += pair.second;
std::mutex AggMode::mutex_ |
|
private |
The documentation for this class was generated from the following file:
- /home/jenkins-slave/workspace/core-os-doxygen/QueryEngine/AggMode.h