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
"plugins/amoeba/vscode:/vscode.git/clone" did not exist on "5a06df78a98249b0f0f5c1d8b1f9c39202a0fd33"
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:
...
@@ -100,7 +100,7 @@ public:
randomNumberSeed
=
seed
;
randomNumberSeed
=
seed
;
}
}
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
double
defaultTemp
,
defaultFreq
;
double
defaultTemp
,
defaultFreq
;
int
randomNumberSeed
;
int
randomNumberSeed
;
...
...
openmmapi/include/openmm/CMAPTorsionForce.h
View file @
0307a0db
...
@@ -149,7 +149,7 @@ public:
...
@@ -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
);
void
setTorsionParameters
(
int
index
,
int
map
,
int
a1
,
int
a2
,
int
a3
,
int
a4
,
int
b1
,
int
b2
,
int
b3
,
int
b4
);
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
class
MapInfo
;
class
MapInfo
;
class
CMAPTorsionInfo
;
class
CMAPTorsionInfo
;
...
...
openmmapi/include/openmm/CMMotionRemover.h
View file @
0307a0db
...
@@ -62,7 +62,7 @@ public:
...
@@ -62,7 +62,7 @@ public:
frequency
=
freq
;
frequency
=
freq
;
}
}
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
int
frequency
;
int
frequency
;
};
};
...
...
openmmapi/include/openmm/Context.h
View file @
0307a0db
...
@@ -72,7 +72,7 @@ public:
...
@@ -72,7 +72,7 @@ public:
* @param system the System which will be simulated
* @param system the System which will be simulated
* @param integrator the Integrator which will be used to simulate the System
* @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
* Construct a new Context in which to run a simulation, explicitly specifying what Platform should be used
* to perform calculations.
* to perform calculations.
...
@@ -81,7 +81,7 @@ public:
...
@@ -81,7 +81,7 @@ public:
* @param integrator the Integrator which will be used to simulate the System
* @param integrator the Integrator which will be used to simulate the System
* @param platform the Platform to use for calculations
* @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
* 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.
* to perform calculations and the values of platform-specific properties.
...
@@ -91,16 +91,12 @@ public:
...
@@ -91,16 +91,12 @@ public:
* @param platform the Platform to use for calculations
* @param platform the Platform to use for calculations
* @param properties a set of values for platform-specific properties. Keys are the property names.
* @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
();
~
Context
();
/**
/**
* Get System being simulated in this context.
* Get System being simulated in this context.
*/
*/
const
System
&
getSystem
()
const
;
const
System
&
getSystem
()
const
;
/**
* Get System being simulated in this context.
*/
System
&
getSystem
();
/**
/**
* Get Integrator being used to by this context.
* Get Integrator being used to by this context.
*/
*/
...
...
openmmapi/include/openmm/CustomAngleForce.h
View file @
0307a0db
...
@@ -203,7 +203,7 @@ public:
...
@@ -203,7 +203,7 @@ public:
*/
*/
void
updateParametersInContext
(
Context
&
context
);
void
updateParametersInContext
(
Context
&
context
);
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
class
AngleInfo
;
class
AngleInfo
;
class
AngleParameterInfo
;
class
AngleParameterInfo
;
...
...
openmmapi/include/openmm/CustomBondForce.h
View file @
0307a0db
...
@@ -200,7 +200,7 @@ public:
...
@@ -200,7 +200,7 @@ public:
*/
*/
void
updateParametersInContext
(
Context
&
context
);
void
updateParametersInContext
(
Context
&
context
);
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
class
BondInfo
;
class
BondInfo
;
class
BondParameterInfo
;
class
BondParameterInfo
;
...
...
openmmapi/include/openmm/CustomCompoundBondForce.h
View file @
0307a0db
...
@@ -270,7 +270,7 @@ public:
...
@@ -270,7 +270,7 @@ public:
*/
*/
void
updateParametersInContext
(
Context
&
context
);
void
updateParametersInContext
(
Context
&
context
);
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
class
BondInfo
;
class
BondInfo
;
class
BondParameterInfo
;
class
BondParameterInfo
;
...
...
openmmapi/include/openmm/CustomExternalForce.h
View file @
0307a0db
...
@@ -200,7 +200,7 @@ public:
...
@@ -200,7 +200,7 @@ public:
*/
*/
void
updateParametersInContext
(
Context
&
context
);
void
updateParametersInContext
(
Context
&
context
);
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
class
ParticleInfo
;
class
ParticleInfo
;
class
ParticleParameterInfo
;
class
ParticleParameterInfo
;
...
...
openmmapi/include/openmm/CustomGBForce.h
View file @
0307a0db
...
@@ -496,7 +496,7 @@ public:
...
@@ -496,7 +496,7 @@ public:
*/
*/
void
updateParametersInContext
(
Context
&
context
);
void
updateParametersInContext
(
Context
&
context
);
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
class
ParticleInfo
;
class
ParticleInfo
;
class
PerParticleParameterInfo
;
class
PerParticleParameterInfo
;
...
...
openmmapi/include/openmm/CustomHbondForce.h
View file @
0307a0db
...
@@ -416,7 +416,7 @@ public:
...
@@ -416,7 +416,7 @@ public:
*/
*/
void
updateParametersInContext
(
Context
&
context
);
void
updateParametersInContext
(
Context
&
context
);
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
class
GroupInfo
;
class
GroupInfo
;
class
PerPairParameterInfo
;
class
PerPairParameterInfo
;
...
...
openmmapi/include/openmm/CustomNonbondedForce.h
View file @
0307a0db
...
@@ -327,7 +327,7 @@ public:
...
@@ -327,7 +327,7 @@ public:
*/
*/
void
updateParametersInContext
(
Context
&
context
);
void
updateParametersInContext
(
Context
&
context
);
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
class
ParticleInfo
;
class
ParticleInfo
;
class
PerParticleParameterInfo
;
class
PerParticleParameterInfo
;
...
...
openmmapi/include/openmm/CustomTorsionForce.h
View file @
0307a0db
...
@@ -206,7 +206,7 @@ public:
...
@@ -206,7 +206,7 @@ public:
*/
*/
void
updateParametersInContext
(
Context
&
context
);
void
updateParametersInContext
(
Context
&
context
);
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
class
TorsionInfo
;
class
TorsionInfo
;
class
TorsionParameterInfo
;
class
TorsionParameterInfo
;
...
...
openmmapi/include/openmm/Force.h
View file @
0307a0db
...
@@ -85,7 +85,7 @@ protected:
...
@@ -85,7 +85,7 @@ protected:
* It should create a new ForceImpl object which can be used by the context for calculating forces.
* 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.
* 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.
* Get the ForceImpl corresponding to this Force in a Context.
*/
*/
...
...
openmmapi/include/openmm/GBSAOBCForce.h
View file @
0307a0db
...
@@ -167,7 +167,7 @@ public:
...
@@ -167,7 +167,7 @@ public:
*/
*/
void
updateParametersInContext
(
Context
&
context
);
void
updateParametersInContext
(
Context
&
context
);
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
class
ParticleInfo
;
class
ParticleInfo
;
NonbondedMethod
nonbondedMethod
;
NonbondedMethod
nonbondedMethod
;
...
...
openmmapi/include/openmm/GBVIForce.h
View file @
0307a0db
...
@@ -228,7 +228,7 @@ public:
...
@@ -228,7 +228,7 @@ public:
*/
*/
void
setQuinticUpperBornRadiusLimit
(
double
quinticUpperBornRadiusLimit
);
void
setQuinticUpperBornRadiusLimit
(
double
quinticUpperBornRadiusLimit
);
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
class
ParticleInfo
;
class
ParticleInfo
;
NonbondedMethod
nonbondedMethod
;
NonbondedMethod
nonbondedMethod
;
...
...
openmmapi/include/openmm/HarmonicAngleForce.h
View file @
0307a0db
...
@@ -103,7 +103,7 @@ public:
...
@@ -103,7 +103,7 @@ public:
*/
*/
void
updateParametersInContext
(
Context
&
context
);
void
updateParametersInContext
(
Context
&
context
);
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
class
AngleInfo
;
class
AngleInfo
;
std
::
vector
<
AngleInfo
>
angles
;
std
::
vector
<
AngleInfo
>
angles
;
...
...
openmmapi/include/openmm/HarmonicBondForce.h
View file @
0307a0db
...
@@ -100,7 +100,7 @@ public:
...
@@ -100,7 +100,7 @@ public:
*/
*/
void
updateParametersInContext
(
Context
&
context
);
void
updateParametersInContext
(
Context
&
context
);
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
class
BondInfo
;
class
BondInfo
;
std
::
vector
<
BondInfo
>
bonds
;
std
::
vector
<
BondInfo
>
bonds
;
...
...
openmmapi/include/openmm/MonteCarloBarostat.h
View file @
0307a0db
...
@@ -119,7 +119,7 @@ public:
...
@@ -119,7 +119,7 @@ public:
randomNumberSeed
=
seed
;
randomNumberSeed
=
seed
;
}
}
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
double
defaultPressure
,
temperature
;
double
defaultPressure
,
temperature
;
int
frequency
,
randomNumberSeed
;
int
frequency
,
randomNumberSeed
;
...
...
openmmapi/include/openmm/NonbondedForce.h
View file @
0307a0db
...
@@ -296,7 +296,7 @@ public:
...
@@ -296,7 +296,7 @@ public:
*/
*/
void
updateParametersInContext
(
Context
&
context
);
void
updateParametersInContext
(
Context
&
context
);
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
class
ParticleInfo
;
class
ParticleInfo
;
class
ExceptionInfo
;
class
ExceptionInfo
;
...
...
openmmapi/include/openmm/PeriodicTorsionForce.h
View file @
0307a0db
...
@@ -109,7 +109,7 @@ public:
...
@@ -109,7 +109,7 @@ public:
*/
*/
void
updateParametersInContext
(
Context
&
context
);
void
updateParametersInContext
(
Context
&
context
);
protected:
protected:
ForceImpl
*
createImpl
();
ForceImpl
*
createImpl
()
const
;
private:
private:
class
PeriodicTorsionInfo
;
class
PeriodicTorsionInfo
;
std
::
vector
<
PeriodicTorsionInfo
>
periodicTorsions
;
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