mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 04:40:59 +00:00
Begin proper memory management on taxonomy
This commit is contained in:
@@ -344,6 +344,11 @@ struct edge : public trimmed_curve {
|
||||
struct collection : public geom_item {
|
||||
std::vector<item*> children;
|
||||
|
||||
collection() {}
|
||||
collection(const collection& other) {
|
||||
std::transform(other.children.begin(), other.children.end(), std::back_inserter(children), std::mem_fun(&item::clone));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
std::vector<T*> children_as() const {
|
||||
std::vector<T*> ts;
|
||||
|
||||
Reference in New Issue
Block a user