Pulse adds COVID-19 Simulation Support
×
SESubstanceFraction Class Reference

#include <SESubstanceFraction.h>

Inherits Loggable.

Public Member Functions

 SESubstanceFraction (const SESubstance &)
 
virtual ~SESubstanceFraction ()
 
virtual void Clear ()
 
virtual bool HasFractionAmount () const
 
virtual SEScalar0To1GetFractionAmount ()
 
virtual double GetFractionAmount () const
 
virtual const SESubstanceGetSubstance () const
 
- Public Member Functions inherited from Loggable
 Loggable (Logger *logger=nullptr)
 
 Loggable (std::string const &logfile)
 
virtual ~Loggable ()
 
virtual LoggerGetLogger () const
 
virtual void SetLogger (Logger &logger)
 
virtual void Debug (std::string const &msg, std::string const &origin=empty) const
 
virtual void Debug (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Debug (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Info (std::string const &msg, std::string const &origin=empty) const
 
virtual void Info (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Info (const std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Info (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Warning (std::string const &msg, std::string const &origin=empty) const
 
virtual void Warning (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Warning (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Error (std::string const &msg, std::string const &origin=empty) const
 
virtual void Error (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Error (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::string const &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::ostream &msg, std::string const &origin=empty) const
 
std::string to_string (int i)
 
std::string to_string (unsigned int i)
 
std::string to_string (size_t t)
 
std::string to_string (float f)
 
std::string to_string (double d)
 

Protected Attributes

const SESubstancem_Substance
 
SEScalar0To1m_FractionAmount
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class PBSubstance
 
class SEEnvironmentalConditions
 
class SEMechanicalVentilator
 

Additional Inherited Members

- Static Public Attributes inherited from Loggable
static const std::string empty
 

Constructor & Destructor Documentation

◆ SESubstanceFraction()

SESubstanceFraction::SESubstanceFraction ( const SESubstance substance)

◆ ~SESubstanceFraction()

SESubstanceFraction::~SESubstanceFraction ( )
virtual

Member Function Documentation

◆ Clear()

void SESubstanceFraction::Clear ( )
virtual

◆ GetFractionAmount() [1/2]

SEScalar0To1 & SESubstanceFraction::GetFractionAmount ( )
virtual

◆ GetFractionAmount() [2/2]

double SESubstanceFraction::GetFractionAmount ( ) const
virtual

◆ GetSubstance()

const SESubstance & SESubstanceFraction::GetSubstance ( ) const
virtual

◆ HasFractionAmount()

bool SESubstanceFraction::HasFractionAmount ( ) const
virtual

Friends And Related Function Documentation

◆ PBSubstance

friend class PBSubstance
friend

◆ SEEnvironmentalConditions

friend class SEEnvironmentalConditions
friend

◆ SEMechanicalVentilator

friend class SEMechanicalVentilator
friend

Member Data Documentation

◆ m_FractionAmount

SEScalar0To1* SESubstanceFraction::m_FractionAmount
protected

◆ m_Substance

const SESubstance& SESubstanceFraction::m_Substance
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.