GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 60.0% 3 / 0 / 5
Functions: 60.0% 3 / 0 / 5
Branches: -% 0 / 0 / 0

src/model/AirGap.hpp
Line Branch Exec Source
1 /***********************************************************************************************************************
2 * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC.
3 * See also https://openstudio.net/license
4 ***********************************************************************************************************************/
5
6 #ifndef MODEL_AIRGAP_HPP
7 #define MODEL_AIRGAP_HPP
8
9 #include "ModelAPI.hpp"
10 #include "OpaqueMaterial.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 namespace detail {
17
18 class AirGap_Impl;
19
20 } // namespace detail
21
22 /** AirGap is a OpaqueMaterial that wraps the OpenStudio IDD object 'OS:Material:AirGap'. */
23 class MODEL_API AirGap : public OpaqueMaterial
24 {
25 public:
26 /** @name Constructors and Destructors */
27 //@{
28
29 explicit AirGap(const Model& model, double thermalResistance = 0.1);
30
31 533 virtual ~AirGap() override = default;
32 // Default the copy and move operators because the virtual dtor is explicit
33 ✗ AirGap(const AirGap& other) = default;
34 26 AirGap(AirGap&& other) = default;
35 1 AirGap& operator=(const AirGap&) = default;
36 ✗ AirGap& operator=(AirGap&&) = default;
37
38 //@}
39
40 static IddObjectType iddObjectType();
41
42 /** @name Getters */
43 //@{
44
45 double thermalResistance() const;
46
47 //@}
48 /** @name Setters */
49 //@{
50
51 bool setThermalResistance(double thermalResistance);
52
53 // Resets the thermal resistance to the default of 0.1 m2-K/W
54 void resetThermalResistance();
55
56 //@}
57 /** @name Other */
58 //@{
59
60 //@}
61 protected:
62 /// @cond
63 using ImplType = detail::AirGap_Impl;
64
65 explicit AirGap(std::shared_ptr<detail::AirGap_Impl> impl);
66
67 friend class detail::AirGap_Impl;
68 friend class Model;
69 friend class IdfObject;
70 friend class openstudio::detail::IdfObject_Impl;
71 /// @endcond
72 private:
73 REGISTER_LOGGER("openstudio.model.AirGap");
74 };
75
76 /** \relates AirGap*/
77 using OptionalAirGap = boost::optional<AirGap>;
78
79 /** \relates AirGap*/
80 using AirGapVector = std::vector<AirGap>;
81
82 } // namespace model
83 } // namespace openstudio
84
85 #endif // MODEL_AIRGAP_HPP
86