"vscode:/vscode.git/clone" did not exist on "a09f73ff0b52397edcbbf5c05caa07a7f60a7dbe"
Commit 51bf5ee4 authored by Christopher Bruns's avatar Christopher Bruns
Browse files

Added "explicit" keyword to constructors for several API classes.

parent 066cfd60
......@@ -48,7 +48,7 @@ public:
/**
* Create a CMMotionRemover.
*/
CMMotionRemover(int frequency = 1);
explicit CMMotionRemover(int frequency = 1);
/**
* Get the frequency (in time steps) at which center of mass motion should be removed
*/
......
......@@ -76,7 +76,7 @@ public:
* @param energy an algebraic expression giving the interaction energy between three particles as a function
* of theta, the angle between them
*/
CustomAngleForce(const std::string& energy);
explicit CustomAngleForce(const std::string& energy);
/**
* Get the number of angles for which force field parameters have been defined.
*/
......
......@@ -76,7 +76,7 @@ public:
* @param energy an algebraic expression giving the interaction energy between two bonded particles as a function
* of r, the distance between them
*/
CustomBondForce(const std::string& energy);
explicit CustomBondForce(const std::string& energy);
/**
* Get the number of bonds for which force field parameters have been defined.
*/
......
......@@ -79,7 +79,7 @@ public:
* @param energy an algebraic expression giving the potential energy of each particle as a function
* of its x, y, and z coordinates
*/
CustomExternalForce(const std::string& energy);
explicit CustomExternalForce(const std::string& energy);
/**
* Get the number of particles for which force field parameters have been defined.
*/
......
......@@ -123,7 +123,7 @@ public:
* of inter-particle distances, angles, and dihedrals, as well as any global, per-donor, and
* per-acceptor parameters
*/
CustomHbondForce(const std::string& energy);
explicit CustomHbondForce(const std::string& energy);
/**
* Get the number of donors for which force field parameters have been defined.
*/
......
......@@ -110,7 +110,7 @@ public:
* @param energy an algebraic expression giving the interaction energy between two particles as a function
* of r, the distance between them, as well as any global and per-particle parameters
*/
CustomNonbondedForce(const std::string& energy);
explicit CustomNonbondedForce(const std::string& energy);
/**
* Get the number of particles for which force field parameters have been defined.
*/
......
......@@ -76,7 +76,7 @@ public:
* @param energy an algebraic expression giving the interaction energy between three particles as a function
* of theta, the torsion angle between them
*/
CustomTorsionForce(const std::string& energy);
explicit CustomTorsionForce(const std::string& energy);
/**
* Get the number of torsions for which force field parameters have been defined.
*/
......
......@@ -43,7 +43,7 @@ namespace OpenMM {
class OpenMMException : public std::exception {
public:
OpenMMException(const std::string& message) : message(message) {
explicit OpenMMException(const std::string& message) : message(message) {
}
~OpenMMException() throw() {
}
......
......@@ -65,7 +65,7 @@ public:
*
* @param errorTol the error tolerance
*/
VariableVerletIntegrator(double errorTol);
explicit VariableVerletIntegrator(double errorTol);
/**
* Get the error tolerance.
*/
......
......@@ -49,7 +49,7 @@ public:
*
* @param stepSize the step size with which to integrator the system (in picoseconds)
*/
VerletIntegrator(double stepSize);
explicit VerletIntegrator(double stepSize);
/**
* Advance a simulation through time by taking a series of time steps.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment