GCC Code Coverage Report


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

src/model/Glazing.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_GLAZING_HPP
7 #define MODEL_GLAZING_HPP
8
9 #include "ModelAPI.hpp"
10 #include "FenestrationMaterial.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16 class Glazing_Impl;
17 }
18
19 /** Glazing is a FenestrationMaterial that serves as a base class for several types of glass
20 * layers in fenestration \link LayeredConstruction LayeredConstructions \endlink. */
21 class MODEL_API Glazing : public FenestrationMaterial
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 1282 virtual ~Glazing() override = default;
28 // Default the copy and move operators because the virtual dtor is explicit
29 219 Glazing(const Glazing& other) = default;
30 389 Glazing(Glazing&& other) = default;
31 4 Glazing& operator=(const Glazing&) = default;
32 4 Glazing& operator=(Glazing&&) = default;
33
34 //@}
35 protected:
36 /// @cond
37 using ImplType = detail::Glazing_Impl;
38
39 friend class Model;
40 friend class openstudio::IdfObject;
41 friend class detail::Glazing_Impl;
42
43 Glazing(IddObjectType type, const Model& model);
44
45 explicit Glazing(std::shared_ptr<detail::Glazing_Impl> impl);
46
47 /// @endcond
48 private:
49 REGISTER_LOGGER("openstudio.model.Glazing");
50 };
51
52 /** \relates Glazing */
53 using OptionalGlazing = boost::optional<Glazing>;
54
55 /** \relates Glazing */
56 using GlazingVector = std::vector<Glazing>;
57
58 } // namespace model
59 } // namespace openstudio
60
61 #endif // MODEL_GLAZING_HPP
62