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
7class CDM_DECL SEFunctionVolumeVsTime : public SEFunction
8{
9 friend class PBProperty;//friend the serialization class
10public:
11
14
15 void Clear() override;
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
33protected:
34
37};
Definition: CompoundUnit.h:40
Definition: PBProperties.h:87
Definition: SEFunction.h:8
virtual void Clear()
Definition: SEFunction.cpp:19
void Copy(const SEFunction &src)
Definition: SEFunction.cpp:25
Definition: SEFunctionVolumeVsTime.h:8
void Copy(const SEFunction &src)=delete
double GetDependentValue(size_t index)=delete
const TimeUnit * m_TimeUnit
Definition: SEFunctionVolumeVsTime.h:35
const CCompoundUnit * GetIndependentUnit() const override
Definition: SEFunctionVolumeVsTime.h:20
double GetIndependentValue(size_t index)=delete
const VolumeUnit * m_VolumeUnit
Definition: SEFunctionVolumeVsTime.h:36
const CCompoundUnit * GetDependentUnit() const override
Definition: SEFunctionVolumeVsTime.h:27
Definition: SEScalarTime.h:8
Definition: SEScalarVolume.h:8

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.