OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::make_balanced_filters_fn Struct Reference

Function object to create balanced word filters based on the maximum number of filters. More...

#include <word_filters.hpp>

Public Member Functions

result_type operator() (std::vector< std::string > const &words, int maxFilters) const

Detailed Description

Function object to create balanced word filters based on the maximum number of filters.

This functor provides an interface to create balanced word filters based on the maximum number of filters. It takes a vector of words and an integer representing the maximum number of filters, and returns a map associating each filter with its corresponding words. The implementation may vary depending on the desired filtering strategy.

Member Function Documentation

◆ operator()()

result_type oxy::make_balanced_filters_fn::operator() ( std::vector< std::string > const & words,
int maxFilters ) const
Parameters
wordsA vector of strings representing the words to be filtered.
maxFiltersAn integer representing the maximum number of filters.
Returns
A map associating each filter with its corresponding words.