OpenMM
Main Page
Classes
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
ForceImpl.h
1
#ifndef OPENMM_FORCEIMPL_H_
2
#define OPENMM_FORCEIMPL_H_
3
4
/* -------------------------------------------------------------------------- *
5
* OpenMM *
6
* -------------------------------------------------------------------------- *
7
* This is part of the OpenMM molecular simulation toolkit originating from *
8
* Simbios, the NIH National Center for Physics-Based Simulation of *
9
* Biological Structures at Stanford, funded under the NIH Roadmap for *
10
* Medical Research, grant U54 GM072970. See https://simtk.org. *
11
* *
12
* Portions copyright (c) 2008 Stanford University and the Authors. *
13
* Authors: Peter Eastman *
14
* Contributors: *
15
* *
16
* Permission is hereby granted, free of charge, to any person obtaining a *
17
* copy of this software and associated documentation files (the "Software"), *
18
* to deal in the Software without restriction, including without limitation *
19
* the rights to use, copy, modify, merge, publish, distribute, sublicense, *
20
* and/or sell copies of the Software, and to permit persons to whom the *
21
* Software is furnished to do so, subject to the following conditions: *
22
* *
23
* The above copyright notice and this permission notice shall be included in *
24
* all copies or substantial portions of the Software. *
25
* *
26
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
27
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
28
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *
29
* THE AUTHORS, CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
30
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
31
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
32
* USE OR OTHER DEALINGS IN THE SOFTWARE. *
33
* -------------------------------------------------------------------------- */
34
35
#include "openmm/internal/windowsExport.h"
36
#include <map>
37
#include <string>
38
#include <utility>
39
#include <vector>
40
41
namespace
OpenMM {
42
43
class
Force
;
44
class
ContextImpl;
45
57
class
OPENMM_EXPORT
ForceImpl
{
58
public
:
59
virtual
~ForceImpl
() {
60
}
65
virtual
void
initialize(
ContextImpl
& context) = 0;
69
virtual
const
Force
& getOwner()
const
= 0;
77
virtual
void
updateContextState(
ContextImpl
& context) = 0;
90
virtual
double
calcForcesAndEnergy(
ContextImpl
& context,
bool
includeForces,
bool
includeEnergy,
int
groups) = 0;
95
virtual
std::map<std::string, double> getDefaultParameters() = 0;
99
virtual
std::vector<std::string> getKernelNames() = 0;
104
virtual
std::vector<std::pair<int, int> >
getBondedParticles
()
const
{
105
return
std::vector<std::pair<int, int> >(0);
106
}
107
};
108
109
}
// namespace OpenMM
110
111
#endif
/*OPENMM_FORCEIMPL_H_*/
OpenMM::ContextImpl
This is the internal implementation of a Context.
Definition:
ContextImpl.h:53
OpenMM::Force
Force objects apply forces to the particles in a System, or alter their behavior in other ways...
Definition:
Force.h:65
OpenMM::ForceImpl::~ForceImpl
virtual ~ForceImpl()
Definition:
ForceImpl.h:59
OpenMM::ForceImpl::getBondedParticles
virtual std::vector< std::pair< int, int > > getBondedParticles() const
Get pairs of particles connected by bonds by this force.
Definition:
ForceImpl.h:104
OpenMM::ForceImpl
A ForceImpl provides the internal implementation of a Force.
Definition:
ForceImpl.h:57
OpenMM::Force
class OPENMM_EXPORT Force
Definition:
System.h:41
openmmapi
include
openmm
internal
ForceImpl.h
Generated on Fri Jan 17 2014 15:20:12 for OpenMM by
1.8.5