GCC Code Coverage Report


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

src/model/Curve_Impl.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_CURVE_IMPL_HPP
7 #define MODEL_CURVE_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ResourceObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16
17 /** Curve_Impl is a ModelObject_Impl that is the implementation class for Curve. */
18 class MODEL_API Curve_Impl : public ResourceObject_Impl
19 {
20
21 public:
22 /** @name Constructors and Destructors */
23 //@{
24
25 // Construct completely new object.
26 Curve_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 // Construct from existing workspace object (typically when Model is being constructed
29 // from Workspace).
30 Curve_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 // Clone copy constructor.
33 Curve_Impl(const Curve_Impl& other, Model_Impl* model, bool keepHandle);
34
35 11922 virtual ~Curve_Impl() override = default;
36
37 //@}
38 /** @name Virtual Methods */
39 //@{
40
41 virtual boost::optional<ParentObject> parent() const override;
42
43 virtual std::vector<EMSActuatorNames> emsActuatorNames() const override;
44
45 virtual std::vector<std::string> emsInternalVariableNames() const override;
46
47 //@}
48 /** @name Other */
49 //@{
50
51 virtual int numVariables() const = 0;
52
53 virtual double evaluate(const std::vector<double>& x) const = 0;
54
55 double evaluate(double x) const;
56
57 double evaluate(double x, double y) const;
58
59 double evaluate(double x, double y, double z) const;
60
61 double evaluate(double w, double x, double y, double z) const;
62
63 double evaluate(double v, double w, double x, double y, double z) const;
64
65 //@}
66 private:
67 − REGISTER_LOGGER("openstudio.model.Curve");
68 };
69
70 } // namespace detail
71
72 } // namespace model
73 } // namespace openstudio
74
75 #endif // MODEL_CURVE_IMPL_HPP
76