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
solverstack
ScalFMM
Commits
4c207d1e
Commit
4c207d1e
authored
Jul 05, 2016
by
Quentin Khan
Browse files
FBasicParticle: simplify `attributes` method implementation
parent
2bcc4aeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/Components/FBasicParticle.hpp
View file @
4c207d1e
...
@@ -194,9 +194,7 @@ public:
...
@@ -194,9 +194,7 @@ public:
*/
*/
types_tuple_t
attributes
()
const
{
types_tuple_t
attributes
()
const
{
return
attributes_impl
(
return
attributes_impl
(
std
::
make_index_sequence
<
std
::
tuple_size
<
types_tuple_t
>::
value
>
(),
std
::
make_index_sequence
<
std
::
tuple_size
<
types_tuple_t
>::
value
>
());
types_tuple_t
()
);
}
}
/**
/**
...
@@ -276,12 +274,9 @@ private:
...
@@ -276,12 +274,9 @@ private:
*
*
* \param pos new position
* \param pos new position
*/
*/
template
<
std
::
size_t
...
Is
,
typename
...
Attributes
>
template
<
std
::
size_t
...
Is
>
std
::
tuple
<
Attributes
...
>
attributes_impl
(
std
::
index_sequence
<
Is
...
>
,
types_tuple_t
attributes_impl
(
std
::
index_sequence
<
Is
...
>
)
const
{
std
::
tuple
<
Attributes
...
>
)
return
types_tuple_t
(
std
::
get
<
Is
+
Dim
>
(
*
this
)...);
const
{
return
std
::
tuple
<
Attributes
...
>
(
std
::
get
<
Is
+
Dim
>
(
this
->
data
())...);
}
}
};
};
...
...
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