MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / match

Method match

src/ifcgeom/IfcGeomFilter.h:184–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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));

Callers

nothing calls this directly

Calls 5

wildcards_matchClass · 0.85
constructMethod · 0.45
get_layersMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected