| 67 | } |
| 68 | |
| 69 | bool |
| 70 | VectorFilter::filter(int v) const |
| 71 | { |
| 72 | if (!this->valid_filter()) |
| 73 | return false; |
| 74 | |
| 75 | v = lookup(v); |
| 76 | bool re = std::find(vs_.begin(), vs_.end(), static_cast<unsigned int>(v)) != vs_.end(); |
| 77 | return (flag_ == FILTER_OUT) ? re : !re; |
| 78 | } |
| 79 | |
| 80 | VectorFilter& |
| 81 | VectorFilter::add(unsigned int item) |
nothing calls this directly
no test coverage detected