<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SEFunctionElectricPotentialVsTime.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/SEFunction.h"
6 
8 {
9  friend class PBProperty;//friend the serialization class
10 public:
11 
14 
15  void Clear();
16  void Copy(const SEFunction& src) = delete;
17  void Copy(const SEFunctionElectricPotentialVsTime& src);
18 
19  double GetIndependentValue(size_t index) = delete;
20  const CCompoundUnit* GetIndependentUnit() const override {return (CCompoundUnit*)m_TimeUnit;}
21  double GetTimeValue(size_t index, const TimeUnit& unit) const;
22  std::vector<double>& GetTime();
23  const TimeUnit* GetTimeUnit() const;
24  void SetTimeUnit(const TimeUnit& unit);
25 
26  double GetDependentValue(size_t index) = delete;
27  const CCompoundUnit* GetDependentUnit() const override {return (CCompoundUnit*)m_ElectricPotentialUnit;}
28  double GetElectricPotentialValue(size_t index, const ElectricPotentialUnit& unit) const;
29  std::vector<double>& GetElectricPotential();
30  const ElectricPotentialUnit* GetElectricPotentialUnit() const;
31  void SetElectricPotentialUnit(const ElectricPotentialUnit& unit);
32 
33 protected:
34 
37 };
const CCompoundUnit * GetDependentUnit() const override
Definition: SEFunctionElectricPotentialVsTime.h:27
Definition: SEFunctionElectricPotentialVsTime.h:7
Definition: SEScalarElectricPotential.h:7
Definition: SEScalarTime.h:7
const ElectricPotentialUnit * m_ElectricPotentialUnit
Definition: SEFunctionElectricPotentialVsTime.h:36
double GetDependentValue(size_t index) const
Definition: SEFunction.cpp:64
const TimeUnit * m_TimeUnit
Definition: SEFunctionElectricPotentialVsTime.h:35
Definition: SEFunction.h:7
virtual void Clear()
Definition: SEFunction.cpp:21
double GetIndependentValue(size_t index) const
Definition: SEFunction.cpp:76
Definition: CompoundUnit.h:39
Definition: PBProperties.h:84
void Copy(const SEFunction &src)
Definition: SEFunction.cpp:27
const CCompoundUnit * GetIndependentUnit() const override
Definition: SEFunctionElectricPotentialVsTime.h:20

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.