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
bf3a4db6
Commit
bf3a4db6
authored
Jul 10, 2009
by
Peter Eastman
Browse files
Changed a few method signatures to make them easier to wrap
parent
fa2c4192
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
openmmapi/include/openmm/OpenMMContext.h
openmmapi/include/openmm/OpenMMContext.h
+2
-2
openmmapi/include/openmm/OpenMMException.h
openmmapi/include/openmm/OpenMMException.h
+1
-1
openmmapi/src/OpenMMContext.cpp
openmmapi/src/OpenMMContext.cpp
+2
-2
No files found.
openmmapi/include/openmm/OpenMMContext.h
View file @
bf3a4db6
...
...
@@ -134,14 +134,14 @@ public:
*
* @param name the name of the parameter to get
*/
double
getParameter
(
std
::
string
name
);
double
getParameter
(
const
std
::
string
&
name
);
/**
* Set the value of an adjustable parameter defined by a Force object in the System.
*
* @param name the name of the parameter to set
* @param value the value of the parameter
*/
void
setParameter
(
std
::
string
name
,
double
value
);
void
setParameter
(
const
std
::
string
&
name
,
double
value
);
/**
* When an OpenMMContext is created, it may cache information about the System being simulated
* and the Force objects contained in it. This means that, if the System or Forces are then
...
...
openmmapi/include/openmm/OpenMMException.h
View file @
bf3a4db6
...
...
@@ -43,7 +43,7 @@ namespace OpenMM {
class
OpenMMException
:
public
std
::
exception
{
public:
OpenMMException
(
std
::
string
message
)
:
message
(
message
)
{
OpenMMException
(
const
std
::
string
&
message
)
:
message
(
message
)
{
}
~
OpenMMException
()
throw
()
{
}
...
...
openmmapi/src/OpenMMContext.cpp
View file @
bf3a4db6
...
...
@@ -108,11 +108,11 @@ void OpenMMContext::setVelocities(const vector<Vec3>& velocities) {
impl
->
getVelocities
().
loadFromArray
(
&
velocities
[
0
]);
}
double
OpenMMContext
::
getParameter
(
string
name
)
{
double
OpenMMContext
::
getParameter
(
const
string
&
name
)
{
return
impl
->
getParameter
(
name
);
}
void
OpenMMContext
::
setParameter
(
string
name
,
double
value
)
{
void
OpenMMContext
::
setParameter
(
const
string
&
name
,
double
value
)
{
impl
->
setParameter
(
name
,
value
);
}
...
...
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