MTMCSim
0.5
|
Factory class for classes derived from MultiRunSimuBase, i.e., simulations that supports multi-run mode. More...
#include <MRSimuFactory.h>
Public Types | |
typedef shared_ptr < MultiRunSimuBase >(* | createFcn )(SimuPara &, TextSaveUI &, TextSaveUI &, DispUI &) |
Public Member Functions | |
void | regSimulator (string name, createFcn) |
shared_ptr< MultiRunSimuBase > | create (string name, SimuPara ¶, TextSaveUI &resFile_, TextSaveUI &tempFile_, DispUI &dispUI_) |
Static Public Member Functions | |
static MRSimuFactory & | instance () |
Factory class for classes derived from MultiRunSimuBase, i.e., simulations that supports multi-run mode.
\ Singleton.
typedef shared_ptr<MultiRunSimuBase>(* MTMCSim::MRSimuFactory::createFcn)(SimuPara &, TextSaveUI &, TextSaveUI &, DispUI &) |
shared_ptr< MultiRunSimuBase > MTMCSim::MRSimuFactory::create | ( | string | name, |
SimuPara & | para, | ||
TextSaveUI & | resFile_, | ||
TextSaveUI & | tempFile_, | ||
DispUI & | dispUI_ | ||
) |
|
inlinestatic |
void MTMCSim::MRSimuFactory::regSimulator | ( | string | name, |
createFcn | creator | ||
) |