Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
0307a0db
Commit
0307a0db
authored
Apr 15, 2013
by
Yutong Zhao
Browse files
Context constructor now uses const System&, guaranteeing that System won't be modified.
parent
19757775
Changes
138
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
22 additions
and
26 deletions
+22
-26
openmmapi/include/openmm/AndersenThermostat.h
openmmapi/include/openmm/AndersenThermostat.h
+1
-1
openmmapi/include/openmm/CMAPTorsionForce.h
openmmapi/include/openmm/CMAPTorsionForce.h
+1
-1
openmmapi/include/openmm/CMMotionRemover.h
openmmapi/include/openmm/CMMotionRemover.h
+1
-1
openmmapi/include/openmm/Context.h
openmmapi/include/openmm/Context.h
+3
-7
openmmapi/include/openmm/CustomAngleForce.h
openmmapi/include/openmm/CustomAngleForce.h
+1
-1
openmmapi/include/openmm/CustomBondForce.h
openmmapi/include/openmm/CustomBondForce.h
+1
-1
openmmapi/include/openmm/CustomCompoundBondForce.h
openmmapi/include/openmm/CustomCompoundBondForce.h
+1
-1
openmmapi/include/openmm/CustomExternalForce.h
openmmapi/include/openmm/CustomExternalForce.h
+1
-1
openmmapi/include/openmm/CustomGBForce.h
openmmapi/include/openmm/CustomGBForce.h
+1
-1
openmmapi/include/openmm/CustomHbondForce.h
openmmapi/include/openmm/CustomHbondForce.h
+1
-1
openmmapi/include/openmm/CustomNonbondedForce.h
openmmapi/include/openmm/CustomNonbondedForce.h
+1
-1
openmmapi/include/openmm/CustomTorsionForce.h
openmmapi/include/openmm/CustomTorsionForce.h
+1
-1
openmmapi/include/openmm/Force.h
openmmapi/include/openmm/Force.h
+1
-1
openmmapi/include/openmm/GBSAOBCForce.h
openmmapi/include/openmm/GBSAOBCForce.h
+1
-1
openmmapi/include/openmm/GBVIForce.h
openmmapi/include/openmm/GBVIForce.h
+1
-1
openmmapi/include/openmm/HarmonicAngleForce.h
openmmapi/include/openmm/HarmonicAngleForce.h
+1
-1
openmmapi/include/openmm/HarmonicBondForce.h
openmmapi/include/openmm/HarmonicBondForce.h
+1
-1
openmmapi/include/openmm/MonteCarloBarostat.h
openmmapi/include/openmm/MonteCarloBarostat.h
+1
-1
openmmapi/include/openmm/NonbondedForce.h
openmmapi/include/openmm/NonbondedForce.h
+1
-1
openmmapi/include/openmm/PeriodicTorsionForce.h
openmmapi/include/openmm/PeriodicTorsionForce.h
+1
-1
No files found.
openmmapi/include/openmm/AndersenThermostat.h
View file @
0307a0db
...
...
@@ -100,7 +100,7 @@ public:
randomNumberSeed
=
seed
;
}
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
double
defaultTemp
,
defaultFreq
;
int
randomNumberSeed
;
...
...
openmmapi/include/openmm/CMAPTorsionForce.h
View file @
0307a0db
...
...
@@ -149,7 +149,7 @@ public:
*/
void
setTorsionParameters
(
int
index
,
int
map
,
int
a1
,
int
a2
,
int
a3
,
int
a4
,
int
b1
,
int
b2
,
int
b3
,
int
b4
);
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
class
MapInfo
;
class
CMAPTorsionInfo
;
...
...
openmmapi/include/openmm/CMMotionRemover.h
View file @
0307a0db
...
...
@@ -62,7 +62,7 @@ public:
frequency
=
freq
;
}
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
int
frequency
;
};
...
...
openmmapi/include/openmm/Context.h
View file @
0307a0db
...
...
@@ -72,7 +72,7 @@ public:
* @param system the System which will be simulated
* @param integrator the Integrator which will be used to simulate the System
*/
Context
(
System
&
system
,
Integrator
&
integrator
);
Context
(
const
System
&
system
,
Integrator
&
integrator
);
/**
* Construct a new Context in which to run a simulation, explicitly specifying what Platform should be used
* to perform calculations.
...
...
@@ -81,7 +81,7 @@ public:
* @param integrator the Integrator which will be used to simulate the System
* @param platform the Platform to use for calculations
*/
Context
(
System
&
system
,
Integrator
&
integrator
,
Platform
&
platform
);
Context
(
const
System
&
system
,
Integrator
&
integrator
,
Platform
&
platform
);
/**
* Construct a new Context in which to run a simulation, explicitly specifying what Platform should be used
* to perform calculations and the values of platform-specific properties.
...
...
@@ -91,16 +91,12 @@ public:
* @param platform the Platform to use for calculations
* @param properties a set of values for platform-specific properties. Keys are the property names.
*/
Context
(
System
&
system
,
Integrator
&
integrator
,
Platform
&
platform
,
const
std
::
map
<
std
::
string
,
std
::
string
>&
properties
);
Context
(
const
System
&
system
,
Integrator
&
integrator
,
Platform
&
platform
,
const
std
::
map
<
std
::
string
,
std
::
string
>&
properties
);
~
Context
();
/**
* Get System being simulated in this context.
*/
const
System
&
getSystem
()
const
;
/**
* Get System being simulated in this context.
*/
System
&
getSystem
();
/**
* Get Integrator being used to by this context.
*/
...
...
openmmapi/include/openmm/CustomAngleForce.h
View file @
0307a0db
...
...
@@ -203,7 +203,7 @@ public:
*/
void
updateParametersInContext
(
Context
&
context
);
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
class
AngleInfo
;
class
AngleParameterInfo
;
...
...
openmmapi/include/openmm/CustomBondForce.h
View file @
0307a0db
...
...
@@ -200,7 +200,7 @@ public:
*/
void
updateParametersInContext
(
Context
&
context
);
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
class
BondInfo
;
class
BondParameterInfo
;
...
...
openmmapi/include/openmm/CustomCompoundBondForce.h
View file @
0307a0db
...
...
@@ -270,7 +270,7 @@ public:
*/
void
updateParametersInContext
(
Context
&
context
);
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
class
BondInfo
;
class
BondParameterInfo
;
...
...
openmmapi/include/openmm/CustomExternalForce.h
View file @
0307a0db
...
...
@@ -200,7 +200,7 @@ public:
*/
void
updateParametersInContext
(
Context
&
context
);
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
class
ParticleInfo
;
class
ParticleParameterInfo
;
...
...
openmmapi/include/openmm/CustomGBForce.h
View file @
0307a0db
...
...
@@ -496,7 +496,7 @@ public:
*/
void
updateParametersInContext
(
Context
&
context
);
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
class
ParticleInfo
;
class
PerParticleParameterInfo
;
...
...
openmmapi/include/openmm/CustomHbondForce.h
View file @
0307a0db
...
...
@@ -416,7 +416,7 @@ public:
*/
void
updateParametersInContext
(
Context
&
context
);
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
class
GroupInfo
;
class
PerPairParameterInfo
;
...
...
openmmapi/include/openmm/CustomNonbondedForce.h
View file @
0307a0db
...
...
@@ -327,7 +327,7 @@ public:
*/
void
updateParametersInContext
(
Context
&
context
);
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
class
ParticleInfo
;
class
PerParticleParameterInfo
;
...
...
openmmapi/include/openmm/CustomTorsionForce.h
View file @
0307a0db
...
...
@@ -206,7 +206,7 @@ public:
*/
void
updateParametersInContext
(
Context
&
context
);
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
class
TorsionInfo
;
class
TorsionParameterInfo
;
...
...
openmmapi/include/openmm/Force.h
View file @
0307a0db
...
...
@@ -85,7 +85,7 @@ protected:
* It should create a new ForceImpl object which can be used by the context for calculating forces.
* The ForceImpl will be deleted automatically when the Context is deleted.
*/
virtual
ForceImpl
*
createImpl
()
=
0
;
virtual
ForceImpl
*
createImpl
()
const
=
0
;
/**
* Get the ForceImpl corresponding to this Force in a Context.
*/
...
...
openmmapi/include/openmm/GBSAOBCForce.h
View file @
0307a0db
...
...
@@ -167,7 +167,7 @@ public:
*/
void
updateParametersInContext
(
Context
&
context
);
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
class
ParticleInfo
;
NonbondedMethod
nonbondedMethod
;
...
...
openmmapi/include/openmm/GBVIForce.h
View file @
0307a0db
...
...
@@ -228,7 +228,7 @@ public:
*/
void
setQuinticUpperBornRadiusLimit
(
double
quinticUpperBornRadiusLimit
);
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
class
ParticleInfo
;
NonbondedMethod
nonbondedMethod
;
...
...
openmmapi/include/openmm/HarmonicAngleForce.h
View file @
0307a0db
...
...
@@ -103,7 +103,7 @@ public:
*/
void
updateParametersInContext
(
Context
&
context
);
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
class
AngleInfo
;
std
::
vector
<
AngleInfo
>
angles
;
...
...
openmmapi/include/openmm/HarmonicBondForce.h
View file @
0307a0db
...
...
@@ -100,7 +100,7 @@ public:
*/
void
updateParametersInContext
(
Context
&
context
);
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
class
BondInfo
;
std
::
vector
<
BondInfo
>
bonds
;
...
...
openmmapi/include/openmm/MonteCarloBarostat.h
View file @
0307a0db
...
...
@@ -119,7 +119,7 @@ public:
randomNumberSeed
=
seed
;
}
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
double
defaultPressure
,
temperature
;
int
frequency
,
randomNumberSeed
;
...
...
openmmapi/include/openmm/NonbondedForce.h
View file @
0307a0db
...
...
@@ -296,7 +296,7 @@ public:
*/
void
updateParametersInContext
(
Context
&
context
);
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
class
ParticleInfo
;
class
ExceptionInfo
;
...
...
openmmapi/include/openmm/PeriodicTorsionForce.h
View file @
0307a0db
...
...
@@ -109,7 +109,7 @@ public:
*/
void
updateParametersInContext
(
Context
&
context
);
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
class
PeriodicTorsionInfo
;
std
::
vector
<
PeriodicTorsionInfo
>
periodicTorsions
;
...
...
Prev
1
2
3
4
5
…
7
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment