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

◆ setSampleFilter()

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

Sets a sample filter factory.

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

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

Definition at line 1669 of file DataStorm.h.