Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
5b43eb35
Commit
5b43eb35
authored
May 23, 2018
by
Müller, Felix
Committed by
Praetorius, Simon
May 23, 2018
Browse files
corrected includes and inline specifiers in TreePath
parent
b23d88cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/amdis/utility/TreePath.hpp
View file @
5b43eb35
...
...
@@ -2,11 +2,13 @@
#include
<sstream>
#include
<string>
#include
<type_traits>
#include
<dune/common/std/apply.hh>
#include
<dune/typetree/treepath.hh>
#include
<dune/typetree/typetraits.hh>
#include
<amdis/common/Mpl.hpp>
namespace
AMDiS
{
...
...
@@ -79,9 +81,9 @@ namespace AMDiS
#else // DOXYGEN
auto
makeTreePath
(
int
i
)
{
return
Dune
::
TypeTree
::
hybridTreePath
(
std
::
size_t
(
i
));
}
auto
makeTreePath
(
std
::
size_t
i
)
{
return
Dune
::
TypeTree
::
hybridTreePath
(
i
);
}
auto
makeTreePath
(
RootTreePath
)
{
return
Dune
::
TypeTree
::
hybridTreePath
();
}
inline
auto
makeTreePath
(
int
i
)
{
return
Dune
::
TypeTree
::
hybridTreePath
(
std
::
size_t
(
i
));
}
inline
auto
makeTreePath
(
std
::
size_t
i
)
{
return
Dune
::
TypeTree
::
hybridTreePath
(
i
);
}
inline
auto
makeTreePath
(
RootTreePath
)
{
return
Dune
::
TypeTree
::
hybridTreePath
();
}
template
<
int
I
>
...
...
@@ -140,7 +142,7 @@ namespace AMDiS
return
ss
.
str
();
}
std
::
string
to_string
(
Dune
::
TypeTree
::
HybridTreePath
<>
const
&
tp
)
inline
std
::
string
to_string
(
Dune
::
TypeTree
::
HybridTreePath
<>
const
&
tp
)
{
return
""
;
}
...
...
@@ -160,7 +162,7 @@ namespace AMDiS
return
Impl
::
toArrayImpl
(
tp
,
std
::
make_index_sequence
<
1
+
sizeof
...(
T
)
>
{});
}
std
::
array
<
std
::
size_t
,
1
>
to_array
(
Dune
::
TypeTree
::
HybridTreePath
<>
const
&
tp
)
inline
std
::
array
<
std
::
size_t
,
1
>
to_array
(
Dune
::
TypeTree
::
HybridTreePath
<>
const
&
tp
)
{
return
{{
0u
}};
}
...
...
Write
Preview
Supports
Markdown
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