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/InteriorPartitionSurfaceGroup.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_INTERIORPARTITIONSURFACEGROUP_HPP
7 #define MODEL_INTERIORPARTITIONSURFACEGROUP_HPP
8
9 #include "ModelAPI.hpp"
10 #include "PlanarSurfaceGroup.hpp"
11
12 namespace openstudio {
13
14 class Transformation;
15
16 namespace model {
17
18 class Space;
19 class InteriorPartitionSurface;
20
21 namespace detail {
22
23 class InteriorPartitionSurfaceGroup_Impl;
24
25 } // namespace detail
26
27 /** InteriorPartitionSurfaceGroup is a PlanarSurfaceGroup that wraps the OpenStudio IDD object 'OS_InteriorPartitionSurfaceGroup'. */
28 class MODEL_API InteriorPartitionSurfaceGroup : public PlanarSurfaceGroup
29 {
30 public:
31 /** @name Constructors and Destructors */
32 //@{
33
34 explicit InteriorPartitionSurfaceGroup(const Model& model);
35
36 2409 virtual ~InteriorPartitionSurfaceGroup() override = default;
37 // Default the copy and move operators because the virtual dtor is explicit
38 6 InteriorPartitionSurfaceGroup(const InteriorPartitionSurfaceGroup& other) = default;
39 1273 InteriorPartitionSurfaceGroup(InteriorPartitionSurfaceGroup&& other) = default;
40 ✗ InteriorPartitionSurfaceGroup& operator=(const InteriorPartitionSurfaceGroup&) = default;
41 ✗ InteriorPartitionSurfaceGroup& operator=(InteriorPartitionSurfaceGroup&&) = default;
42
43 //@}
44 /** @name Static Methods */
45 //@{
46
47 static IddObjectType iddObjectType();
48
49 //@}
50 /** @name Getters */
51 //@{
52
53 int multiplier() const;
54
55 bool isMultiplierDefaulted() const;
56
57 //@}
58 /** @name Setters */
59 //@{
60
61 bool setMultiplier(int multiplier);
62
63 void resetMultiplier();
64
65 //@}
66
67 /// Returns the parent Space.
68 boost::optional<Space> space() const;
69
70 /// Sets the parent Space.
71 bool setSpace(const Space& space);
72
73 void resetSpace();
74
75 /// Returns all \link InteriorPartitionSurface InteriorPartitionSurfaces \endlink in this group.
76 std::vector<InteriorPartitionSurface> interiorPartitionSurfaces() const;
77
78 protected:
79 /// @cond
80 using ImplType = detail::InteriorPartitionSurfaceGroup_Impl;
81
82 friend class Model;
83 friend class openstudio::IdfObject;
84
85 explicit InteriorPartitionSurfaceGroup(std::shared_ptr<detail::InteriorPartitionSurfaceGroup_Impl> impl);
86
87 /// @endcond
88 private:
89 REGISTER_LOGGER("openstudio.model.InteriorPartitionSurfaceGroup");
90 };
91
92 /** \relates InteriorPartitionSurfaceGroup*/
93 using OptionalInteriorPartitionSurfaceGroup = boost::optional<InteriorPartitionSurfaceGroup>;
94
95 /** \relates InteriorPartitionSurfaceGroup*/
96 using InteriorPartitionSurfaceGroupVector = std::vector<InteriorPartitionSurfaceGroup>;
97
98 } // namespace model
99 } // namespace openstudio
100
101 #endif // MODEL_INTERIORPARTITIONSURFACEGROUP_HPP
102