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/GasLayer.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_GASLAYER_HPP
7 #define MODEL_GASLAYER_HPP
8
9 #include "ModelAPI.hpp"
10 #include "FenestrationMaterial.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16 class GasLayer_Impl;
17 }
18
19 /** GasLayer is a FenestrationMaterial that serves as a base class for gaseous layers in
20 * fenestration \link LayeredConstruction LayeredConstructions \endlink. The base class is used
21 * to determine if EnergyPlus's rules for relative placement of fenestration layers are
22 * satisfied. */
23 class MODEL_API GasLayer : public FenestrationMaterial
24 {
25 public:
26 /** @name Constructors and Destructors */
27 //@{
28
29 235 virtual ~GasLayer() override = default;
30 // Default the copy and move operators because the virtual dtor is explicit
31 ✗ GasLayer(const GasLayer& other) = default;
32 4 GasLayer(GasLayer&& other) = default;
33 2 GasLayer& operator=(const GasLayer&) = default;
34 ✗ GasLayer& operator=(GasLayer&&) = default;
35
36 //@}
37 protected:
38 /// @cond
39 using ImplType = detail::GasLayer_Impl;
40
41 friend class Model;
42 friend class openstudio::IdfObject;
43 friend class detail::GasLayer_Impl;
44
45 GasLayer(IddObjectType type, const Model& model);
46
47 explicit GasLayer(std::shared_ptr<detail::GasLayer_Impl> impl);
48
49 /// @endcond
50 private:
51 REGISTER_LOGGER("openstudio.model.GasLayer");
52 };
53
54 using OptionalGasLayer = boost::optional<GasLayer>;
55
56 using GasLayerVector = std::vector<GasLayer>;
57
58 } // namespace model
59 } // namespace openstudio
60
61 #endif // MODEL_GASLAYER_HPP
62