Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ setKeyFilter()

template<typename Key, typename Value, typename UpdateTag>
template<typename Criteria>
void DataStorm::Topic< Key, Value, UpdateTag >::setKeyFilter ( std::string name,
std::function< std::function< bool(const Key &)>(const Criteria &)> factory )
noexcept

Sets a key filter factory.

The given factory function must return a filter function that returns true if the key matches the filter criteria, false otherwise.

Parameters
nameThe name of the key filter.
factoryThe filter factory function.

Definition at line 1659 of file DataStorm.h.