<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SEFunctionVolumeVsTime.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 
7 class CDM_DECL SEFunctionVolumeVsTime : public SEFunction
8 {
9  friend class PBProperty;//friend the serialization class
10 public:
11 
13  virtual ~SEFunctionVolumeVsTime();
14 
15  virtual void Clear();
16  void Copy(const SEFunction& src) = delete;
17  void Copy(const SEFunctionVolumeVsTime& 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_VolumeUnit;}
28  double GetVolumeValue(size_t index, const VolumeUnit& unit) const;
29  std::vector<double>& GetVolume();
30  const VolumeUnit* GetVolumeUnit() const;
31  void SetVolumeUnit(const VolumeUnit& unit);
32 
33 protected:
34 
37 };
Definition: SEScalarVolume.h:7
Definition: SEFunctionVolumeVsTime.h:7
const VolumeUnit * m_VolumeUnit
Definition: SEFunctionVolumeVsTime.h:36
const CCompoundUnit * GetDependentUnit() const override
Definition: SEFunctionVolumeVsTime.h:27
Definition: SEScalarTime.h:7
double GetDependentValue(size_t index) const
Definition: SEFunction.cpp:64
const CCompoundUnit * GetIndependentUnit() const override
Definition: SEFunctionVolumeVsTime.h:20
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 TimeUnit * m_TimeUnit
Definition: SEFunctionVolumeVsTime.h:35

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.