Public Member Functions |
Protected Member Functions |
Protected Attributes |
Friends |
List of all members
SEPhysiologyEnginePool Class Referenceabstract
#include <PhysiologyEnginePool.h>
Inherits Loggable.
Inherited by PulseEnginePool.
Public Member Functions | |
SEPhysiologyEnginePool (size_t poolSize=0, const std::string &dataDir="./", Logger *logger=nullptr) | |
~SEPhysiologyEnginePool () | |
const size_t | GetWorkerCount () const |
bool | RemoveEngine (int id) |
const std::map< int, SEPhysiologyEnginePoolEngine * > & | GetEngines () const |
SEPhysiologyEnginePoolEngine * | GetEngine (int id) const |
SEPhysiologyEnginePoolEngine * | CreateEngine (int id) |
bool | InitializeEngines () |
bool | AdvanceModelTime (double time, const TimeUnit &unit) |
bool | ProcessAction (const SEAction &action) |
bool | ProcessActions () |
void | ClearDataRequested () |
void | PullDataRequested (std::vector< SEDataRequested * > &) |
Public Member Functions inherited from Loggable | |
Loggable (Logger *logger=nullptr) | |
Loggable (std::string const &logfile) | |
virtual | ~Loggable () |
virtual Logger * | GetLogger () const |
virtual void | SetLogger (Logger &logger) |
virtual void | Debug (std::string const &msg) const |
virtual void | Debug (std::stringstream &msg) const |
virtual void | Debug (std::ostream &msg) const |
virtual void | Info (std::string const &msg) const |
virtual void | Info (std::stringstream &msg) const |
virtual void | Info (const std::stringstream &msg) const |
virtual void | Info (std::ostream &msg) const |
virtual void | Warning (std::string const &msg) const |
virtual void | Warning (std::stringstream &msg) const |
virtual void | Warning (std::ostream &msg) const |
virtual void | Error (std::string const &msg) const |
virtual void | Error (std::stringstream &msg) const |
virtual void | Error (std::ostream &msg) const |
virtual void | Fatal (std::string const &msg) const |
virtual void | Fatal (std::stringstream &msg) const |
virtual void | Fatal (std::ostream &msg) const |
Protected Member Functions | |
virtual void | AllocateEngine (SEPhysiologyEnginePoolEngine &pe)=0 |
Protected Attributes | |
bool | m_IsActive |
SESubstanceManager | m_SubMgr |
std::map< int, SEPhysiologyEnginePoolEngine * > | m_Engines |
ThreadPool | m_Pool |
Protected Attributes inherited from Loggable | |
bool | myLogger |
Logger * | m_Logger |
Friends | |
class | PhysiologyEnginePoolThunk |
Constructor & Destructor Documentation
◆ SEPhysiologyEnginePool()
SEPhysiologyEnginePool::SEPhysiologyEnginePool | ( | size_t | poolSize = 0 , |
const std::string & | dataDir = "./" , |
||
Logger * | logger = nullptr |
||
) |
◆ ~SEPhysiologyEnginePool()
SEPhysiologyEnginePool::~SEPhysiologyEnginePool | ( | ) |
Member Function Documentation
◆ AdvanceModelTime()
bool SEPhysiologyEnginePool::AdvanceModelTime | ( | double | time, |
const TimeUnit & | unit | ||
) |
◆ AllocateEngine()
|
protectedpure virtual |
Implemented in PulseEnginePool.
◆ ClearDataRequested()
void SEPhysiologyEnginePool::ClearDataRequested | ( | ) |
◆ CreateEngine()
SEPhysiologyEnginePoolEngine * SEPhysiologyEnginePool::CreateEngine | ( | int | id | ) |
◆ GetEngine()
SEPhysiologyEnginePoolEngine * SEPhysiologyEnginePool::GetEngine | ( | int | id | ) | const |
◆ GetEngines()
const std::map< int, SEPhysiologyEnginePoolEngine * > & SEPhysiologyEnginePool::GetEngines | ( | ) | const |
◆ GetWorkerCount()
|
inline |
◆ InitializeEngines()
bool SEPhysiologyEnginePool::InitializeEngines | ( | ) |
◆ ProcessAction()
bool SEPhysiologyEnginePool::ProcessAction | ( | const SEAction & | action | ) |
◆ ProcessActions()
bool SEPhysiologyEnginePool::ProcessActions | ( | ) |
◆ PullDataRequested()
void SEPhysiologyEnginePool::PullDataRequested | ( | std::vector< SEDataRequested * > & | dataRequested | ) |
◆ RemoveEngine()
bool SEPhysiologyEnginePool::RemoveEngine | ( | int | id | ) |
Friends And Related Function Documentation
◆ PhysiologyEnginePoolThunk
|
friend |
Member Data Documentation
◆ m_Engines
|
protected |
◆ m_IsActive
|
protected |
◆ m_Pool
|
protected |
◆ m_SubMgr
|
protected |