| 16 | : type(type), categories(std::move(categories)) {} |
| 17 | |
| 18 | bool PhysicsCategoryFilter::check(StringSet const& otherCategories) const { |
| 19 | bool intersection = categories.hasIntersection(otherCategories); |
| 20 | if (type == Whitelist) |
| 21 | return intersection; |
| 22 | else |
| 23 | return !intersection; |
| 24 | } |
| 25 | |
| 26 | bool PhysicsCategoryFilter::operator==(PhysicsCategoryFilter const& rhs) const { |
| 27 | return tie(type, categories) == tie(rhs.type, rhs.categories); |
no test coverage detected