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/ModelPartitionMaterial.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_MODELPARTITIONMATERIAL_HPP
7 #define MODEL_MODELPARTITIONMATERIAL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "Material.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16 class ModelPartitionMaterial_Impl;
17 }
18
19 /** ModelPartitionMaterial is an abstract class derived from Material.
20 *
21 * The ModelPartitionMaterial class is the base class for materials that should
22 * exist as the only layer in a Construction. ModelPartitionMaterial objects
23 * are typically used for the \link Construction Constructions\endlink of \link Surface Surfaces\endlink
24 * that are virtual boundaries between two \link Space Spaces\endlink. */
25 class MODEL_API ModelPartitionMaterial : public Material
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 5 virtual ~ModelPartitionMaterial() override = default;
32 // Default the copy and move operators because the virtual dtor is explicit
33 ✗ ModelPartitionMaterial(const ModelPartitionMaterial& other) = default;
34 2 ModelPartitionMaterial(ModelPartitionMaterial&& other) = default;
35 1 ModelPartitionMaterial& operator=(const ModelPartitionMaterial&) = default;
36 ✗ ModelPartitionMaterial& operator=(ModelPartitionMaterial&&) = default;
37
38 //@}
39 protected:
40 /// @cond
41 using ImplType = detail::ModelPartitionMaterial_Impl;
42
43 friend class Model;
44 friend class openstudio::IdfObject;
45 friend class detail::ModelPartitionMaterial_Impl;
46
47 ModelPartitionMaterial(IddObjectType type, const Model& model);
48
49 explicit ModelPartitionMaterial(std::shared_ptr<detail::ModelPartitionMaterial_Impl> impl);
50
51 /// @endcond
52 private:
53 REGISTER_LOGGER("openstudio.model.ModelPartitionMaterial");
54 };
55
56 /** \relates ModelPartitionMaterial */
57 using OptionalModelPartitionMaterial = boost::optional<ModelPartitionMaterial>;
58
59 /** \relates ModelPartitionMaterial */
60 using ModelPartitionMaterialVector = std::vector<ModelPartitionMaterial>;
61
62 } // namespace model
63 } // namespace openstudio
64
65 #endif // MODEL_MODELPARTITIONMATERIAL_HPP
66