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
ff7874d7
Commit
ff7874d7
authored
Jan 20, 2009
by
Peter Eastman
Browse files
Added getPlatform() to OpenMMContext
parent
a043fea5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
openmmapi/include/OpenMMContext.h
openmmapi/include/OpenMMContext.h
+8
-0
openmmapi/src/OpenMMContext.cpp
openmmapi/src/OpenMMContext.cpp
+7
-1
No files found.
openmmapi/include/OpenMMContext.h
View file @
ff7874d7
...
@@ -96,6 +96,14 @@ public:
...
@@ -96,6 +96,14 @@ public:
* Get Integrator being used to by this context.
* Get Integrator being used to by this context.
*/
*/
Integrator
&
getIntegrator
();
Integrator
&
getIntegrator
();
/**
* Get the Platform being used for calculations.
*/
const
Platform
&
getPlatform
()
const
;
/**
* Get the Platform being used for calculations.
*/
Platform
&
getPlatform
();
/**
/**
* Get a State object recording the current state information stored in this context.
* Get a State object recording the current state information stored in this context.
*
*
...
...
openmmapi/src/OpenMMContext.cpp
View file @
ff7874d7
...
@@ -57,12 +57,18 @@ System& OpenMMContext::getSystem() {
...
@@ -57,12 +57,18 @@ System& OpenMMContext::getSystem() {
const
Integrator
&
OpenMMContext
::
getIntegrator
()
const
{
const
Integrator
&
OpenMMContext
::
getIntegrator
()
const
{
return
impl
->
getIntegrator
();
return
impl
->
getIntegrator
();
}
}
Integrator
&
OpenMMContext
::
getIntegrator
()
{
Integrator
&
OpenMMContext
::
getIntegrator
()
{
return
impl
->
getIntegrator
();
return
impl
->
getIntegrator
();
}
const
Platform
&
OpenMMContext
::
getPlatform
()
const
{
return
impl
->
getPlatform
();
}
Platform
&
OpenMMContext
::
getPlatform
()
{
return
impl
->
getPlatform
();
}
}
State
OpenMMContext
::
getState
(
int
types
)
const
{
State
OpenMMContext
::
getState
(
int
types
)
const
{
...
...
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