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
5d4dcb42
Commit
5d4dcb42
authored
Jan 27, 2014
by
peastman
Browse files
Delete TabulatedFunctions when their owner is deleted
parent
a773952e
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
0 deletions
+26
-0
openmmapi/include/openmm/CustomCompoundBondForce.h
openmmapi/include/openmm/CustomCompoundBondForce.h
+1
-0
openmmapi/include/openmm/CustomGBForce.h
openmmapi/include/openmm/CustomGBForce.h
+1
-0
openmmapi/include/openmm/CustomHbondForce.h
openmmapi/include/openmm/CustomHbondForce.h
+1
-0
openmmapi/include/openmm/CustomNonbondedForce.h
openmmapi/include/openmm/CustomNonbondedForce.h
+1
-0
openmmapi/src/CustomCompoundBondForce.cpp
openmmapi/src/CustomCompoundBondForce.cpp
+6
-0
openmmapi/src/CustomGBForce.cpp
openmmapi/src/CustomGBForce.cpp
+5
-0
openmmapi/src/CustomHbondForce.cpp
openmmapi/src/CustomHbondForce.cpp
+6
-0
openmmapi/src/CustomNonbondedForce.cpp
openmmapi/src/CustomNonbondedForce.cpp
+5
-0
No files found.
openmmapi/include/openmm/CustomCompoundBondForce.h
View file @
5d4dcb42
...
...
@@ -107,6 +107,7 @@ public:
* and per-bond parameters
*/
explicit
CustomCompoundBondForce
(
int
numParticles
,
const
std
::
string
&
energy
);
~
CustomCompoundBondForce
();
/**
* Get the number of particles used to define each bond.
*/
...
...
openmmapi/include/openmm/CustomGBForce.h
View file @
5d4dcb42
...
...
@@ -182,6 +182,7 @@ public:
* Create a CustomGBForce.
*/
CustomGBForce
();
~
CustomGBForce
();
/**
* Get the number of particles for which force field parameters have been defined.
*/
...
...
openmmapi/include/openmm/CustomHbondForce.h
View file @
5d4dcb42
...
...
@@ -125,6 +125,7 @@ public:
* per-acceptor parameters
*/
explicit
CustomHbondForce
(
const
std
::
string
&
energy
);
~
CustomHbondForce
();
/**
* Get the number of donors for which force field parameters have been defined.
*/
...
...
openmmapi/include/openmm/CustomNonbondedForce.h
View file @
5d4dcb42
...
...
@@ -157,6 +157,7 @@ public:
* of r, the distance between them, as well as any global and per-particle parameters
*/
explicit
CustomNonbondedForce
(
const
std
::
string
&
energy
);
~
CustomNonbondedForce
();
/**
* Get the number of particles for which force field parameters have been defined.
*/
...
...
openmmapi/src/CustomCompoundBondForce.cpp
View file @
5d4dcb42
...
...
@@ -51,6 +51,12 @@ using std::vector;
CustomCompoundBondForce
::
CustomCompoundBondForce
(
int
numParticles
,
const
string
&
energy
)
:
particlesPerBond
(
numParticles
),
energyExpression
(
energy
)
{
}
CustomCompoundBondForce
::~
CustomCompoundBondForce
()
{
for
(
int
i
=
0
;
i
<
(
int
)
functions
.
size
();
i
++
)
delete
functions
[
i
].
function
;
}
const
string
&
CustomCompoundBondForce
::
getEnergyFunction
()
const
{
return
energyExpression
;
}
...
...
openmmapi/src/CustomGBForce.cpp
View file @
5d4dcb42
...
...
@@ -50,6 +50,11 @@ using std::vector;
CustomGBForce
::
CustomGBForce
()
:
nonbondedMethod
(
NoCutoff
),
cutoffDistance
(
1.0
)
{
}
CustomGBForce
::~
CustomGBForce
()
{
for
(
int
i
=
0
;
i
<
(
int
)
functions
.
size
();
i
++
)
delete
functions
[
i
].
function
;
}
CustomGBForce
::
NonbondedMethod
CustomGBForce
::
getNonbondedMethod
()
const
{
return
nonbondedMethod
;
}
...
...
openmmapi/src/CustomHbondForce.cpp
View file @
5d4dcb42
...
...
@@ -50,6 +50,12 @@ using std::vector;
CustomHbondForce
::
CustomHbondForce
(
const
string
&
energy
)
:
energyExpression
(
energy
),
nonbondedMethod
(
NoCutoff
),
cutoffDistance
(
1.0
)
{
}
CustomHbondForce
::~
CustomHbondForce
()
{
for
(
int
i
=
0
;
i
<
(
int
)
functions
.
size
();
i
++
)
delete
functions
[
i
].
function
;
}
const
string
&
CustomHbondForce
::
getEnergyFunction
()
const
{
return
energyExpression
;
}
...
...
openmmapi/src/CustomNonbondedForce.cpp
View file @
5d4dcb42
...
...
@@ -51,6 +51,11 @@ CustomNonbondedForce::CustomNonbondedForce(const string& energy) : energyExpress
switchingDistance
(
-
1.0
),
useSwitchingFunction
(
false
),
useLongRangeCorrection
(
false
)
{
}
CustomNonbondedForce
::~
CustomNonbondedForce
()
{
for
(
int
i
=
0
;
i
<
(
int
)
functions
.
size
();
i
++
)
delete
functions
[
i
].
function
;
}
const
string
&
CustomNonbondedForce
::
getEnergyFunction
()
const
{
return
energyExpression
;
}
...
...
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