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
546ec2fd
Commit
546ec2fd
authored
Sep 07, 2017
by
peastman
Committed by
GitHub
Sep 07, 2017
Browse files
Merge pull request #1891 from peastman/tabulated
getTabulatedFunction() returns correct subclass
parents
e22b1955
1763045b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
wrappers/python/src/swig_doxygen/swigInputBuilder.py
wrappers/python/src/swig_doxygen/swigInputBuilder.py
+13
-0
No files found.
wrappers/python/src/swig_doxygen/swigInputBuilder.py
View file @
546ec2fd
...
@@ -315,6 +315,19 @@ class SwigInputBuilder:
...
@@ -315,6 +315,19 @@ class SwigInputBuilder:
self
.
fOut
.
write
(
",
\n
OpenMM::%s"
%
name
)
self
.
fOut
.
write
(
",
\n
OpenMM::%s"
%
name
)
self
.
fOut
.
write
(
");
\n\n
"
)
self
.
fOut
.
write
(
");
\n\n
"
)
for
classNode
in
self
.
_orderedClassNodes
:
methodList
=
getClassMethodList
(
classNode
,
self
.
skipMethods
)
for
items
in
methodList
:
(
shortClassName
,
memberNode
,
shortMethDefinition
,
methName
,
isConstructors
,
isDestructor
,
templateType
,
templateName
)
=
items
if
shortMethDefinition
==
'TabulatedFunction& getTabulatedFunction'
:
self
.
fOut
.
write
(
"%factory(OpenMM::TabulatedFunction& OpenMM::"
)
self
.
fOut
.
write
(
"%s::%s"
%
(
shortClassName
,
methName
))
for
name
in
sorted
(
tabulatedFunctionSubclassList
):
self
.
fOut
.
write
(
",
\n
OpenMM::%s"
%
name
)
self
.
fOut
.
write
(
");
\n\n
"
)
self
.
fOut
.
write
(
"%factory(OpenMM::VirtualSite& OpenMM::System::getVirtualSite, OpenMM::TwoParticleAverageSite, OpenMM::ThreeParticleAverageSite, OpenMM::OutOfPlaneSite, OpenMM::LocalCoordinatesSite);
\n\n
"
)
self
.
fOut
.
write
(
"%factory(OpenMM::VirtualSite& OpenMM::System::getVirtualSite, OpenMM::TwoParticleAverageSite, OpenMM::ThreeParticleAverageSite, OpenMM::OutOfPlaneSite, OpenMM::LocalCoordinatesSite);
\n\n
"
)
self
.
fOut
.
write
(
"
\n
"
)
self
.
fOut
.
write
(
"
\n
"
)
...
...
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