<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SESegment.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 
6 class CDM_DECL SESegment
7 {
8 protected:
9  friend class SECurve;
10  SESegment();
11 public:
12  virtual ~SESegment();
13 
14  virtual void Clear();
15  virtual bool IsValid() const;
16 
17  virtual bool HasBeginVolume() const;
18  virtual SEScalarVolume& GetBeginVolume();
19  virtual double GetBeginVolume(const VolumeUnit& unit) const;
20 
21  virtual bool HasEndVolume() const;
22  virtual SEScalarVolume& GetEndVolume();
23  virtual double GetEndVolume(const VolumeUnit& unit) const;
24 
25  virtual std::string ToString() const;
26  virtual void ToString(std::ostream& str) const;
27 
28 protected:
29  virtual void Abstract() = 0;// Force this class to be abstract
30 
33 };
34 
35 inline std::ostream& operator<< (std::ostream& out, const SESegment* s)
36 {
37  if (s == nullptr)
38  out << "Null Segment" << std::flush;
39  else
40  (*s).ToString(out);
41  return out;
42 }
43 inline std::ostream& operator<< (std::ostream& out, const SESegment& s)
44 {
45  s.ToString(out);
46  return out;
47 }
Definition: SEScalarVolume.h:7
Definition: SEScalarVolume.h:27
virtual std::string ToString() const
Definition: SESegment.cpp:66
virtual std::string ToString() const
Definition: SECurve.cpp:77
SEScalarVolume * m_BeginVolume
Definition: SESegment.h:31
Definition: SECurve.h:11
Definition: SESegment.h:6
virtual std::string ToString() const
Definition: SEScalar.cpp:534
virtual bool IsValid() const override
Definition: SECurve.cpp:23
SEScalarVolume * m_EndVolume
Definition: SESegment.h:32

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.