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

Method yearDescription

src/model/Model.cpp:544–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542 }
543
544 boost::optional<YearDescription> Model_Impl::yearDescription() const {
545 if (m_cachedYearDescription) {
546 return m_cachedYearDescription;
547 }
548
549 boost::optional<YearDescription> result = this->model().getOptionalUniqueModelObject<YearDescription>();
550 if (result) {
551 m_cachedYearDescription = result;
552 result->getImpl<YearDescription_Impl>()
553 ->YearDescription_Impl::onRemoveFromWorkspace.connect<Model_Impl, &Model_Impl::clearCachedYearDescription>(
554 const_cast<openstudio::model::detail::Model_Impl*>(this));
555 }
556
557 return m_cachedYearDescription;
558 }
559
560 boost::optional<Site> Model_Impl::site() const {
561 if (m_cachedSite) {

Callers 7

addBillingPeriodMethod · 0.80
withinRunPeriodMethod · 0.80
overlapsRunPeriodMethod · 0.80
modelPeakDemandMethod · 0.80
TEST_FFunction · 0.80

Calls 1

modelMethod · 0.95

Tested by 1

TEST_FFunction · 0.64