-
-
Notifications
You must be signed in to change notification settings - Fork 901
Expand file tree
/
Copy pathexpress.cpp
More file actions
27 lines (23 loc) · 720 Bytes
/
express.cpp
File metadata and controls
27 lines (23 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "express.h"
#include "instance_data.h"
const ifcopenshell::declaration& express::Base::declaration() const {
return *data()->declaration();
}
uint32_t express::Base::identity() const { return data()->identity(); }
uint32_t express::Base::id() const { return data()->id(); }
const instance_data* express::Base::data() const {
auto sp = data_.lock();
if (sp) {
return sp.get();
} else {
throw std::runtime_error("Trying to access deleted instance reference");
}
}
instance_data* express::Base::data() {
auto sp = data_.lock();
if (sp) {
return sp.get();
} else {
throw std::runtime_error("Trying to access deleted instance reference");
}
}