| 182 | : wildcard_filter(include, traverse, patterns) {} |
| 183 | |
| 184 | bool match(IfcUtil::IfcBaseEntity* prod) const { |
| 185 | // @todo |
| 186 | ifcopenshell::geometry::Settings s; |
| 187 | static auto mapping = ifcopenshell::geometry::impl::mapping_implementations().construct(prod->file_, s); |
| 188 | layer_map_t layers = mapping->get_layers(prod); |
| 189 | return std::find_if(layers.begin(), layers.end(), wildcards_match(values)) != layers.end(); |
| 190 | } |
| 191 | |
| 192 | bool operator()(IfcUtil::IfcBaseEntity* prod) const { |
| 193 | return filter::match(prod, std::bind(&layer_filter::match, this, std::placeholders::_1)); |
nothing calls this directly
no test coverage detected