Force objects apply forces to the particles in a System, or alter their behavior in other ways. More...
#include <Force.h>
Public Member Functions | |
Force () | |
virtual | ~Force () |
Protected Member Functions | |
virtual ForceImpl * | createImpl ()=0 |
When a Context is created, it invokes this method on each Force in the System. | |
Friends | |
class | ContextImpl |
Force objects apply forces to the particles in a System, or alter their behavior in other ways.
This is an abstract class. Subclasses define particular forces.
More specifically, a Force object can do any or all of the following:
Force | ( | ) | [inline] |
virtual ~Force | ( | ) | [inline, virtual] |
virtual ForceImpl* createImpl | ( | ) | [protected, pure virtual] |
When a Context is created, it invokes this method on each Force in the System.
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.
Implemented in AndersenThermostat, CMMotionRemover, CustomBondForce, CustomExternalForce, CustomGBForce, CustomNonbondedForce, GBSAOBCForce, GBVIForce, HarmonicAngleForce, HarmonicBondForce, NonbondedForce, PeriodicTorsionForce, and RBTorsionForce.
friend class ContextImpl [friend] |