Major update: taxonomy shared pointers, collection type safety, work towards hashing

This commit is contained in:
Thomas Krijnen
2023-07-27 16:42:06 +08:00
parent 98a73f1646
commit 65a5646bf0
122 changed files with 1669 additions and 1203 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
#define BIND(T) \
if (inst->as<IfcSchema::T>()) { \
try { \
taxonomy::item* item = map_impl(inst->as<IfcSchema::T>()); \
taxonomy::ptr item = map_impl(inst->as<IfcSchema::T>()); \
if (item != nullptr) { \
item->instance = inst; \
try { \
@@ -15,7 +15,7 @@
) { \
auto style = find_style(inst->as<IfcSchema::IfcRepresentationItem>()); \
if (style) { \
((taxonomy::geom_item*)item)->surface_style = (taxonomy::style*) map(style); \
taxonomy::cast<taxonomy::geom_item>(item)->surface_style = taxonomy::cast<taxonomy::style>(map(style)); \
} \
} \
} catch (const std::exception& e) { \