MTMCSim  0.5
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
MTMCSim::MultiRunSimuBase Class Reference

The base class for the simulators that are multi-runnable and support our multithread interface. More...

#include <MultiRunSimuBase.h>

Inheritance diagram for MTMCSim::MultiRunSimuBase:

Public Member Functions

 MultiRunSimuBase (int mode_, SimuPara &simupara)
 
virtual ~MultiRunSimuBase ()
 
- Public Member Functions inherited from MTMCSim::MTMCSimBase
virtual void prepare (const MCThreadInfo &)
 This function will be called by the scheduler before the threads are created. More...
 
virtual void oneThread (shared_ptr< RNObj >, const MCThreadInfo &)=0
 The work to be done by a worker thread. More...
 
virtual shared_ptr< RNObjgenRNObj ()=0
 Returns the random number object, usually they are random sequences. More...
 
virtual void dumpOneResult (const MCThreadInfo &)=0
 Put the result from one thread to the final result object. More...
 
virtual bool checkTerm ()=0
 Return true if the terminate condition satisfies. More...
 
virtual void postProcess ()
 This function will be called after the RNG thread and worker threads are done. More...
 
void singleThreadSim ()
 Single thread simulation. More...
 
virtual void setCompResMap (compResMap &compResM_) const =0
 Calls compRes.setMapping(compResM_);. More...
 
virtual ~MTMCSimBase ()
 Virtual Destructor. More...
 
- Public Member Functions inherited from MTMCSim::MultiRunnable
virtual shared_ptr< SimuParagetNextPara ()
 Get the parameter for the next simulation. More...
 
virtual bool quit () const
 Check if terminate the whole simulation series. More...
 
 MultiRunnable ()
 Default constructor. More...
 
 MultiRunnable (int mode_, SimuPara &simupara)
 
virtual ~MultiRunnable ()
 

Additional Inherited Members

- Protected Attributes inherited from MTMCSim::MultiRunnable
int mulMode
 
bool isQuit
 
shared_ptr< SimuParanextPara
 

Detailed Description

The base class for the simulators that are multi-runnable and support our multithread interface.

Constructor & Destructor Documentation

MTMCSim::MultiRunSimuBase::MultiRunSimuBase ( int  mode_,
SimuPara simupara 
)
inline
virtual MTMCSim::MultiRunSimuBase::~MultiRunSimuBase ( )
inlinevirtual

The documentation for this class was generated from the following file: