Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
da75e5b9
Commit
da75e5b9
authored
7 years ago
by
Martin Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Export IdSet interface to Python
parent
6cf62966
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!790
Feature/add python bindings
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
typeregistry.hh
+2
-0
2 additions, 0 deletions
typeregistry.hh
with
2 additions
and
0 deletions
typeregistry.hh
+
2
−
0
View file @
da75e5b9
...
...
@@ -178,6 +178,7 @@ namespace Dune
return
pybind11
::
str
(
obj
);
}
}
static
std
::
string
getTypeName
(
const
GenerateTypeName
&
name
)
{
return
name
.
name
();
}
std
::
string
getTypeName
(
const
std
::
string
&
name
)
{
return
name
;
}
std
::
string
getTypeName
(
const
char
*
name
)
{
return
name
;
}
template
<
class
T
>
...
...
@@ -203,6 +204,7 @@ namespace Dune
return
{};
}
}
static
std
::
vector
<
std
::
string
>
getIncludes
(
const
GenerateTypeName
&
name
)
{
return
name
.
includes
();
}
template
<
class
T
>
const
std
::
vector
<
std
::
string
>
&
getIncludes
(
const
Dune
::
MetaType
<
T
>
&
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment