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

Function object to dynamically create word filters based on the maximum number of inputs per filter. More...

#include <word_filters.hpp>

Public Member Functions

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

Detailed Description

Function object to dynamically create word filters based on the maximum number of inputs per filter.

This functor provides an interface to create dynamic word filters based on the maximum number of inputs per filter. It takes a vector of words and an integer representing the maximum number of inputs per filter, 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_dynamic_filters_fn::operator() ( std::vector< std::string > const & words,
int maxInputsPerFilter ) const
Parameters
wordsA vector of strings representing the words to be filtered.
maxInputsPerFilterAn integer representing the maximum number of inputs per filter.
Returns
A map associating each filter with its corresponding words.