Pulse adds COVID-19 Simulation Support
×

#include <SESubstanceCompound.h>

Inherits Loggable.

Public Member Functions

virtual ~SESubstanceCompound ()
 
virtual void Clear ()
 
bool SerializeToString (std::string &output, SerializationFormat m) const
 
bool SerializeToFile (const std::string &filename) const
 
bool SerializeFromString (const std::string &src, const SESubstanceManager &subMgr, SerializationFormat m)
 
bool SerializeFromFile (const std::string &filename, const SESubstanceManager &subMgr)
 
virtual std::string GetName () const
 
bool HasComponent () const
 
bool HasComponent (const SESubstance &substance) const
 
const std::vector< SESubstanceConcentration * > & GetComponents ()
 
const std::vector< const SESubstanceConcentration * > & GetComponents () const
 
const SESubstanceConcentrationGetComponent (SESubstance &substance)
 
const SESubstanceConcentrationGetComponent (SESubstance &substance) const
 
void RemoveComponent (const SESubstance &substance)
 
- 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 Member Functions

 SESubstanceCompound (const std::string &name, Logger *logger)
 

Protected Attributes

std::string m_Name
 
std::vector< SESubstanceConcentration * > m_Components
 
std::vector< const SESubstanceConcentration * > m_cComponents
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class PBSubstance
 
class SESubstanceManager
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ SESubstanceCompound()

SESubstanceCompound::SESubstanceCompound ( const std::string &  name,
Logger logger 
)
protected

◆ ~SESubstanceCompound()

SESubstanceCompound::~SESubstanceCompound ( )
virtual

Member Function Documentation

◆ Clear()

void SESubstanceCompound::Clear ( )
virtual

◆ GetComponent() [1/2]

const SESubstanceConcentration & SESubstanceCompound::GetComponent ( SESubstance substance)

◆ GetComponent() [2/2]

const SESubstanceConcentration * SESubstanceCompound::GetComponent ( SESubstance substance) const

◆ GetComponents() [1/2]

const std::vector< SESubstanceConcentration * > & SESubstanceCompound::GetComponents ( )

◆ GetComponents() [2/2]

const std::vector< const SESubstanceConcentration * > & SESubstanceCompound::GetComponents ( ) const

◆ GetName()

std::string SESubstanceCompound::GetName ( ) const
virtual

◆ HasComponent() [1/2]

bool SESubstanceCompound::HasComponent ( ) const

◆ HasComponent() [2/2]

bool SESubstanceCompound::HasComponent ( const SESubstance substance) const

◆ RemoveComponent()

void SESubstanceCompound::RemoveComponent ( const SESubstance substance)

◆ SerializeFromFile()

bool SESubstanceCompound::SerializeFromFile ( const std::string &  filename,
const SESubstanceManager subMgr 
)

◆ SerializeFromString()

bool SESubstanceCompound::SerializeFromString ( const std::string &  src,
const SESubstanceManager subMgr,
SerializationFormat  m 
)

◆ SerializeToFile()

bool SESubstanceCompound::SerializeToFile ( const std::string &  filename) const

◆ SerializeToString()

bool SESubstanceCompound::SerializeToString ( std::string &  output,
SerializationFormat  m 
) const

Friends And Related Function Documentation

◆ PBSubstance

friend class PBSubstance
friend

◆ SESubstanceManager

friend class SESubstanceManager
friend

Member Data Documentation

◆ m_cComponents

std::vector<const SESubstanceConcentration*> SESubstanceCompound::m_cComponents
protected

◆ m_Components

std::vector<SESubstanceConcentration*> SESubstanceCompound::m_Components
protected

◆ m_Name

std::string SESubstanceCompound::m_Name
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.