MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / building

Method building

src/model/Model.cpp:207–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206
207 boost::optional<Building> Model_Impl::building() const {
208 if (m_cachedBuilding) {
209 return m_cachedBuilding;
210 }
211
212 boost::optional<Building> result = this->model().getOptionalUniqueModelObject<Building>();
213 if (result) {
214 m_cachedBuilding = result;
215 result->getImpl<Building_Impl>()->Building_Impl::onRemoveFromWorkspace.connect<Model_Impl, &Model_Impl::clearCachedBuilding>(
216 const_cast<openstudio::model::detail::Model_Impl*>(this));
217 }
218
219 return m_cachedBuilding;
220 }
221
222 boost::optional<FoundationKivaSettings> Model_Impl::foundationKivaSettings() const {
223 if (m_cachedFoundationKivaSettings) {

Callers 15

getDefaultScheduleMethod · 0.45
parentMethod · 0.45
spaceTypeMethod · 0.45
getDefaultScheduleMethod · 0.45
siteTransformationMethod · 0.45
parentMethod · 0.45
cloneMethod · 0.45
parentMethod · 0.45
getDefaultScheduleMethod · 0.45

Calls 1

modelMethod · 0.95

Tested by 1

TEST_FFunction · 0.36