mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 20:00:02 +00:00
Fix #87
This commit is contained in:
@@ -321,6 +321,7 @@ std::set<std::string> Type::GetInverseAttributeNames(Enum t) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Type::PopulateDerivedFields(IfcWrite::IfcWritableEntity* e) {
|
void Type::PopulateDerivedFields(IfcWrite::IfcWritableEntity* e) {
|
||||||
|
if (derived_map.empty()) ::InitDerivedMap();
|
||||||
std::map<Type::Enum, std::set<int> >::const_iterator i = derived_map.find(e->type());
|
std::map<Type::Enum, std::set<int> >::const_iterator i = derived_map.find(e->type());
|
||||||
if (i != derived_map.end()) {
|
if (i != derived_map.end()) {
|
||||||
for (std::set<int>::const_iterator it = i->second.begin(); it != i->second.end(); ++it) {
|
for (std::set<int>::const_iterator it = i->second.begin(); it != i->second.end(); ++it) {
|
||||||
|
|||||||
@@ -4297,6 +4297,7 @@ std::set<std::string> Type::GetInverseAttributeNames(Enum t) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Type::PopulateDerivedFields(IfcWrite::IfcWritableEntity* e) {
|
void Type::PopulateDerivedFields(IfcWrite::IfcWritableEntity* e) {
|
||||||
|
if (derived_map.empty()) ::InitDerivedMap();
|
||||||
std::map<Type::Enum, std::set<int> >::const_iterator i = derived_map.find(e->type());
|
std::map<Type::Enum, std::set<int> >::const_iterator i = derived_map.find(e->type());
|
||||||
if (i != derived_map.end()) {
|
if (i != derived_map.end()) {
|
||||||
for (std::set<int>::const_iterator it = i->second.begin(); it != i->second.end(); ++it) {
|
for (std::set<int>::const_iterator it = i->second.begin(); it != i->second.end(); ++it) {
|
||||||
|
|||||||
@@ -5014,6 +5014,7 @@ std::set<std::string> Type::GetInverseAttributeNames(Enum t) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Type::PopulateDerivedFields(IfcWrite::IfcWritableEntity* e) {
|
void Type::PopulateDerivedFields(IfcWrite::IfcWritableEntity* e) {
|
||||||
|
if (derived_map.empty()) ::InitDerivedMap();
|
||||||
std::map<Type::Enum, std::set<int> >::const_iterator i = derived_map.find(e->type());
|
std::map<Type::Enum, std::set<int> >::const_iterator i = derived_map.find(e->type());
|
||||||
if (i != derived_map.end()) {
|
if (i != derived_map.end()) {
|
||||||
for (std::set<int>::const_iterator it = i->second.begin(); it != i->second.end(); ++it) {
|
for (std::set<int>::const_iterator it = i->second.begin(); it != i->second.end(); ++it) {
|
||||||
|
|||||||
Reference in New Issue
Block a user