Skip to content

Commit

Permalink
Update examples and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Aug 30, 2016
1 parent 7d96533 commit 61b4003
Show file tree
Hide file tree
Showing 4 changed files with 217 additions and 168 deletions.
12 changes: 12 additions & 0 deletions doc/examples/subset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,18 @@
"source": [
"wrappers.write()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"%%bash\n",
"pygmentize PyClangLite/src/py/_clanglite.cpp"
]
}
],
"metadata": {
Expand Down
37 changes: 37 additions & 0 deletions doc/examples/template.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,43 @@
" bootstrap = False,\n",
" silent = True)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Since most of **AutoWIG** guidelines are respected, the `default` `controller` implementation is thus suitable."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"autowig.controller.plugin = 'default'\n",
"asg = autowig.controller(asg)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"autowig.generator.plugin = 'boost_python_pattern'\n",
"for pattern in ['vector']:\n",
" wrappers = autowig.generator(asg,\n",
" pattern = '(class |struct |union |enum |)::std::vector< .* >',\n",
" module = './PySTL/src/py/' + pattern + '/_' + pattern + '.cpp',\n",
" decorator = './PySTL/src/py/stl/' + pattern + '/_' + pattern + '.py',\n",
" closure = True)\n",
" wrappers.write()"
]
}
],
"metadata": {
Expand Down
Loading

0 comments on commit 61b4003

Please sign in to comment.