mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
Apply ifcparse/ part of '65cb47e2d892d84c0d3d8e89ba157360c6902c7f'
This commit is contained in:
@@ -45,8 +45,11 @@ public:
|
|||||||
template <class U>
|
template <class U>
|
||||||
typename U::list::ptr as() {
|
typename U::list::ptr as() {
|
||||||
typename U::list::ptr r(new typename U::list);
|
typename U::list::ptr r(new typename U::list);
|
||||||
const bool all = !U::Class().as_entity();
|
for (it i = begin(); i != end(); ++i) {
|
||||||
for (it i = begin(); i != end(); ++i) if (all || (*i)->declaration().is(U::Class())) r->push((U*)*i);
|
if ((*i)->as<U>()) {
|
||||||
|
r->push((*i)->as<U>());
|
||||||
|
}
|
||||||
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
void remove(IfcUtil::IfcBaseClass*);
|
void remove(IfcUtil::IfcBaseClass*);
|
||||||
|
|||||||
Reference in New Issue
Block a user