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

Method children

src/model/SubSurface.cpp:104–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 }
103
104 std::vector<ModelObject> SubSurface_Impl::children() const {
105 std::vector<ModelObject> result;
106 boost::optional<DaylightingDeviceShelf> daylightingDeviceShelf = this->daylightingDeviceShelf();
107 if (daylightingDeviceShelf) {
108 result.push_back(*daylightingDeviceShelf);
109 }
110 boost::optional<DaylightingDeviceTubular> daylightingDeviceTubular = this->daylightingDeviceTubular();
111 if (daylightingDeviceTubular) {
112 result.push_back(*daylightingDeviceTubular);
113 }
114 boost::optional<DaylightingDeviceLightWell> daylightingDeviceLightWell = this->daylightingDeviceLightWell();
115 if (daylightingDeviceLightWell) {
116 result.push_back(*daylightingDeviceLightWell);
117 }
118 std::vector<AirflowNetworkSurface> myAFNItems =
119 getObject<ModelObject>().getModelObjectSources<AirflowNetworkSurface>(AirflowNetworkSurface::iddObjectType());
120 result.insert(result.end(), myAFNItems.begin(), myAFNItems.end());
121
122 return result;
123 }
124
125 std::vector<IdfObject> SubSurface_Impl::remove() {
126 boost::optional<SubSurface> adjacentSubSurface = this->adjacentSubSurface();

Callers

nothing calls this directly

Calls 8

beginMethod · 0.80
iddObjectTypeFunction · 0.70
push_backMethod · 0.45
insertMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected