mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 06:00:51 +00:00
Changes related to r312
This commit is contained in:
@@ -133,7 +133,7 @@ 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() == IfcSchema::Type::ALL;
|
const bool all = U::Class() == IfcSchema::Type::UNDEFINED;
|
||||||
for ( it i = begin(); i != end(); ++ i ) if (all || (*i)->is(U::Class())) r->push((U*)*i);
|
for ( it i = begin(); i != end(); ++ i ) if (all || (*i)->is(U::Class())) r->push((U*)*i);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
@@ -186,7 +186,7 @@ public:
|
|||||||
template <class U>
|
template <class U>
|
||||||
typename IfcTemplatedEntityListList<U>::ptr as() {
|
typename IfcTemplatedEntityListList<U>::ptr as() {
|
||||||
typename IfcTemplatedEntityListList<U>::ptr r(new IfcTemplatedEntityListList<U>);
|
typename IfcTemplatedEntityListList<U>::ptr r(new IfcTemplatedEntityListList<U>);
|
||||||
const bool all = U::Class() == IfcSchema::Type::ALL;
|
const bool all = U::Class() == IfcSchema::Type::UNDEFINED;
|
||||||
for (outer_it outer = begin(); outer != end(); ++ outer) {
|
for (outer_it outer = begin(); outer != end(); ++ outer) {
|
||||||
const std::vector<IfcUtil::IfcBaseClass*>& from = *outer;
|
const std::vector<IfcUtil::IfcBaseClass*>& from = *outer;
|
||||||
typename std::vector<U*> to;
|
typename std::vector<U*> to;
|
||||||
|
|||||||
Reference in New Issue
Block a user