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
97470a7d
Commit
97470a7d
authored
Aug 29, 2012
by
Peter Eastman
Browse files
Changes to work correctly with the latest version of Doxygen
parent
84feb016
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
16 deletions
+26
-16
openmmapi/include/openmm/VirtualSite.h
openmmapi/include/openmm/VirtualSite.h
+1
-1
wrappers/python/src/swig_doxygen/swigInputBuilder.py
wrappers/python/src/swig_doxygen/swigInputBuilder.py
+25
-15
No files found.
openmmapi/include/openmm/VirtualSite.h
View file @
97470a7d
...
...
@@ -132,7 +132,7 @@ private:
* r<sub>13</sub> is the vector from particle 1 to particle 3, then the virtual
* site location is given by
*
* r<sub>1</sub> + w<sub>12</sub>r<sub>12</sub> + w<sub>13</sub>r<sub>13</sub> + w<sub>cross</sub>(r<sub>12</sub>
×
r<sub>13</sub>)
* r<sub>1</sub> + w<sub>12</sub>r<sub>12</sub> + w<sub>13</sub>r<sub>13</sub> + w<sub>cross</sub>(r<sub>12</sub>
x
r<sub>13</sub>)
*
* The three weight factors are user-specified. This allows the virtual site location
* to be out of the plane of the three particles.
...
...
wrappers/python/src/swig_doxygen/swigInputBuilder.py
View file @
97470a7d
...
...
@@ -17,7 +17,7 @@ import xml.etree.ElementTree as etree
INDENT
=
" "
;
docTags
=
{
'emphasis'
:
'i'
,
'bold'
:
'b'
,
'itemizedlist'
:
'ul'
,
'listitem'
:
'li'
,
'preformatted'
:
'pre'
,
'computeroutput'
:
'tt'
}
docTags
=
{
'emphasis'
:
'i'
,
'bold'
:
'b'
,
'itemizedlist'
:
'ul'
,
'listitem'
:
'li'
,
'preformatted'
:
'pre'
,
'computeroutput'
:
'tt'
,
'subscript'
:
'sub'
}
def
trimToSingleSpace
(
text
):
if
text
is
None
or
len
(
text
)
==
0
:
...
...
@@ -59,10 +59,13 @@ def getText(subNodePath, node):
OPENMM_RE_PATTERN
=
re
.
compile
(
"(.*)OpenMM:[a-zA-Z:]*:(.*)"
)
def
stripOpenmmPrefix
(
name
,
rePattern
=
OPENMM_RE_PATTERN
):
try
:
m
=
rePattern
.
search
(
name
)
rValue
=
"%s%s"
%
m
.
group
(
1
,
2
)
rValue
.
strip
()
return
rValue
except
:
return
name
def
findNodes
(
parent
,
path
,
**
args
):
nodes
=
[]
...
...
@@ -178,6 +181,7 @@ class SwigInputBuilder:
if
(
nodeName
.
split
(
"::"
)[
-
1
],)
in
self
.
skipMethods
:
return
for
baseNodePnt
in
findNodes
(
node
,
"basecompoundref"
,
prot
=
"public"
):
if
"refid"
in
baseNodePnt
.
attrib
:
baseNodeID
=
baseNodePnt
.
attrib
[
"refid"
]
baseNode
=
self
.
_getNodeByID
(
baseNodeID
)
self
.
_findBaseNodes
(
baseNode
,
excludedClassNodes
)
...
...
@@ -195,6 +199,7 @@ class SwigInputBuilder:
#print className
#print classNode.toxml()
for
baseNodePnt
in
findNodes
(
classNode
,
"basecompoundref"
,
prot
=
"public"
):
if
"refid"
in
baseNodePnt
.
attrib
:
baseNodeID
=
baseNodePnt
.
attrib
[
"refid"
]
baseNode
=
self
.
_getNodeByID
(
baseNodeID
)
baseName
=
getText
(
"compoundname"
,
baseNode
)
...
...
@@ -217,6 +222,8 @@ class SwigInputBuilder:
for
memberNode
in
findNodes
(
section
,
"memberdef"
,
kind
=
"variable"
,
mutable
=
"no"
,
prot
=
"public"
,
static
=
"yes"
):
vDef
=
stripOpenmmPrefix
(
getText
(
"definition"
,
memberNode
))
iDef
=
getText
(
"initializer"
,
memberNode
)
if
iDef
.
startswith
(
"="
):
iDef
=
iDef
[
1
:]
self
.
fOut
.
write
(
"static %s = %s;
\n
"
%
(
vDef
,
iDef
))
self
.
fOut
.
write
(
"
\n
"
)
...
...
@@ -255,6 +262,7 @@ class SwigInputBuilder:
self
.
configModule
.
MISSING_BASE_CLASSES
[
className
])
for
baseNodePnt
in
findNodes
(
classNode
,
"basecompoundref"
,
prot
=
"public"
):
if
"refid"
in
baseNodePnt
.
attrib
:
baseName
=
stripOpenmmPrefix
(
getText
(
"."
,
baseNodePnt
))
self
.
fOut
.
write
(
" : public %s"
%
baseName
)
self
.
fOut
.
write
(
" {
\n
"
)
...
...
@@ -282,6 +290,8 @@ class SwigInputBuilder:
for
valueNode
in
findNodes
(
enumNode
,
"enumvalue"
,
prot
=
"public"
):
vName
=
getText
(
"name"
,
valueNode
)
vInit
=
getText
(
"initializer"
,
valueNode
)
if
vInit
.
startswith
(
"="
):
vInit
=
vInit
[
1
:]
self
.
fOut
.
write
(
"%s%s%s = %s"
%
(
argSep
,
2
*
INDENT
,
vName
,
vInit
))
argSep
=
",
\n
"
self
.
fOut
.
write
(
"
\n
%s};
\n
"
%
INDENT
)
...
...
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