• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisionf06a59aedb6b51d27cfc3bdf5847188de044f89a (tree)
Zeit2014-01-17 11:24:18
AutorKatsuhiko Nishimra <ktns.87@gmai...>
CommiterKatsuhiko Nishimra

Log Message

Delete copy constructors of OptimizerState classes. #32881

git-svn-id: https://svn.sourceforge.jp/svnroot/molds/branches/refactor_opt@1650 1136aad2-a195-0410-b898-f5ea1d11b9d8

Ändern Zusammenfassung

Diff

--- a/src/optimization/BFGS.h
+++ b/src/optimization/BFGS.h
@@ -38,6 +38,7 @@ private:
3838 private:
3939 template<class vector>
4040 vector Matrix2Vector(vector const* matrix){return matrix == NULL ? NULL : &matrix[0][0];}
41+ BFGSState(const BFGSState&); // delete default copy constructor
4142 public:
4243 BFGSState(MolDS_base::Molecule& molecule,
4344 boost::shared_ptr<MolDS_base::ElectronicStructure>& electronicStructure);
--- a/src/optimization/ConjugateGradient.h
+++ b/src/optimization/ConjugateGradient.h
@@ -28,6 +28,7 @@ private:
2828 double** oldMatrixForce;
2929 double** matrixSearchDirection;
3030 size_t numAtoms;
31+ ConjugateGradientState(const ConjugateGradientState&); // delete default copy constructor
3132 public:
3233 ConjugateGradientState(MolDS_base::Molecule& molecule,
3334 boost::shared_ptr<MolDS_base::ElectronicStructure>& electronicStructure);
--- a/src/optimization/Optimizer.h
+++ b/src/optimization/Optimizer.h
@@ -37,6 +37,8 @@ protected:
3737 double const* const* matrixForce;
3838 std::string errorMessageFailedToDowncastState;
3939 virtual void SetMessages();
40+ private:
41+ OptimizerState(const OptimizerState&); // delete default copy constructor
4042 public:
4143 OptimizerState(MolDS_base::Molecule& molecule,
4244 boost::shared_ptr<MolDS_base::ElectronicStructure>& electronicStructure);