SEFunction.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5#include "cdm/properties/SEProperty.h"
6
7class CDM_DECL SEFunction : public SEProperty
8{
9 friend class PBProperty;//friend the serialization class
10public:
11
12 SEFunction();
13 virtual ~SEFunction();
14
15 virtual void Clear(); //clear memory
16 void Copy(const SEFunction& src);
17
18 bool WriteCSVFile(const std::string& filename) const;
19
20 bool IsValid() const override;
21 void Invalidate() override;
22
23 virtual size_t Length() const;
24
25 double GetDependentValue(size_t index) const;
26 std::vector<double>& GetDependent();
27 virtual const CCompoundUnit* GetDependentUnit() const {return nullptr;}
28
29 double GetIndependentValue(size_t index) const;
30 std::vector<double>& GetIndependent();
31 virtual const CCompoundUnit* GetIndependentUnit() const {return nullptr;}
32
33protected:
34
35 std::vector<double> m_Dependent;
36 std::vector<double> m_Independent;
37};
Definition: CompoundUnit.h:40
Definition: PBProperties.h:87
static void Copy(const SECurve &src, SECurve &dst)
Definition: PBProperties.cpp:82
Definition: SEFunction.h:8
std::vector< double > m_Independent
Definition: SEFunction.h:36
virtual const CCompoundUnit * GetDependentUnit() const
Definition: SEFunction.h:27
virtual const CCompoundUnit * GetIndependentUnit() const
Definition: SEFunction.h:31
std::vector< double > m_Dependent
Definition: SEFunction.h:35
Definition: SEProperty.h:8
virtual void Invalidate()=0
virtual bool IsValid() const =0

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.