diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 04:56:21 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 04:56:21 +0400 |
commit | fdb83b0f6d7a5b95a4f3c617e5212877d0699eae (patch) | |
tree | 4ef3f883430cb8046bc62598f5aead254872ce96 /mert/Optimizer.h | |
parent | dfb714296fcb6ee2bdde028a5c5bef430b9558aa (diff) |
Put constructor and destructor into private for Factory class
Diffstat (limited to 'mert/Optimizer.h')
-rw-r--r-- | mert/Optimizer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mert/Optimizer.h b/mert/Optimizer.h index c9330a5bd..d0f738804 100644 --- a/mert/Optimizer.h +++ b/mert/Optimizer.h @@ -109,7 +109,11 @@ public: //Point Start; static vector<string> GetTypeNames(); static Optimizer* BuildOptimizer(unsigned dim,vector<unsigned>tooptimize,vector<parameter_t> start,string type,unsigned int nrandom); + private: + OptimizerFactory() {} + ~OptimizerFactory() {} + // Add new optimizer here BEFORE NOPTIMZER enum OptType {POWELL=0,RANDOM_DIRECTION=1,RANDOM,NOPTIMIZER}; static OptType GetOType(string); |