Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::filters::ItemFilter Struct Reference

#include <filters.h>

Public Types

using FilterFunc
 

Public Attributes

FilterFunc filter
 
int column
 zero-based column index
 
bool filterOnHeader
 

Detailed Description

Predicate functor for filtering items in a specific column of a row. Column indices are zero-based. ItemFilter::filter is called once for the data item in ItemFilter::column of each row. If ItemFilter::filterOnHeader is true, then this filter is applied before the header row is extracted.

Member Typedef Documentation

◆ FilterFunc

using inviwo::filters::ItemFilter::FilterFunc
Initial value:
std::variant<std::function<bool(std::string_view)>,
std::function<bool(std::int64_t)>, std::function<bool(double)>>

Member Data Documentation

◆ filter

FilterFunc inviwo::filters::ItemFilter::filter

Predicate function for filtering a column. The data item of ItemFilter::column is converted from std::string to the corresponding type of the predicate function before filter is called, that is std::string_view, int, float, or double.

See also
FilterFunc

The documentation for this struct was generated from the following file: