Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Allen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
LHCb
Allen
Commits
c40b51da
Commit
c40b51da
authored
1 year ago
by
Daniel Campora
Browse files
Options
Downloads
Patches
Plain Diff
Add unaltered parameters to keep track of the config.
parent
6ca4dcbd
No related branches found
Branches containing commit
No related tags found
1 merge request
!1294
Draft: Property refactor
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
stream/gear/include/TransformParameters.cuh
+1
-1
1 addition, 1 deletion
stream/gear/include/TransformParameters.cuh
stream/store/include/Store.cuh
+10
-0
10 additions, 0 deletions
stream/store/include/Store.cuh
with
11 additions
and
1 deletion
stream/gear/include/TransformParameters.cuh
+
1
−
1
View file @
c40b51da
...
...
@@ -103,6 +103,6 @@ struct TransformParameters<const Allen::Store::StoreRef<T...>&> {
{
return
TransformParametersImpl
<
Allen
::
Store
::
StoreRef
<
T
...
>
,
typename
Allen
::
Store
::
StoreRef
<
T
...
>::
parameters_tuple_t
>::
transform
(
t
,
config
);
typename
Allen
::
Store
::
StoreRef
<
T
...
>::
unaltered_
parameters_tuple_t
>::
transform
(
t
,
config
);
}
};
This diff is collapsed.
Click to expand it.
stream/store/include/Store.cuh
+
10
−
0
View file @
c40b51da
...
...
@@ -236,11 +236,13 @@ namespace Allen::Store {
* @brief Manager of argument references for every handler.
*/
template
<
typename
UnalteredParameterTuple
,
typename
ParameterTuple
,
typename
ParameterStruct
,
typename
InputAggregatesTuple
=
std
::
tuple
<
>
>
struct
StoreRef
{
public:
using
unaltered_parameters_tuple_t
=
UnalteredParameterTuple
;
using
parameters_tuple_t
=
ParameterTuple
;
using
parameters_struct_t
=
ParameterStruct
;
using
input_aggregates_t
=
typename
AggregateTypes
<
InputAggregatesTuple
>::
aggregates_tuple_type_t
;
...
...
@@ -372,6 +374,7 @@ namespace Allen::Store {
struct
WrappedTupleDetails
<
Tuple
,
std
::
index_sequence
<>>
{
using
parameters_tuple_t
=
std
::
tuple
<>
;
using
aggregates_tuple_t
=
std
::
tuple
<>
;
using
unaltered_parameters_tuple_t
=
std
::
tuple
<>
;
};
template
<
typename
Tuple
,
std
::
size_t
I
,
std
::
size_t
...
Is
>
...
...
@@ -386,6 +389,8 @@ namespace Allen::Store {
using
prev_parameters_tuple_t
=
typename
prev_wrapped_tuple
::
parameters_tuple_t
;
using
parameters_tuple_t
=
prepend_to_tuple_t
<
boost
::
pfr
::
tuple_element_t
<
I
,
Tuple
>
,
prev_parameters_tuple_t
>
;
using
aggregates_tuple_t
=
typename
prev_wrapped_tuple
::
aggregates_tuple_t
;
using
unaltered_parameters_tuple_t
=
prepend_to_tuple_t
<
boost
::
pfr
::
tuple_element_t
<
I
,
Tuple
>
,
typename
prev_wrapped_tuple
::
unaltered_parameters_tuple_t
>
;
};
template
<
typename
Tuple
,
std
::
size_t
I
,
std
::
size_t
...
Is
>
...
...
@@ -397,6 +402,8 @@ namespace Allen::Store {
using
parameters_tuple_t
=
typename
prev_wrapped_tuple
::
parameters_tuple_t
;
using
aggregates_tuple_t
=
prepend_to_tuple_t
<
boost
::
pfr
::
tuple_element_t
<
I
,
Tuple
>
,
typename
prev_wrapped_tuple
::
aggregates_tuple_t
>
;
using
unaltered_parameters_tuple_t
=
prepend_to_tuple_t
<
boost
::
pfr
::
tuple_element_t
<
I
,
Tuple
>
,
typename
prev_wrapped_tuple
::
unaltered_parameters_tuple_t
>
;
};
template
<
typename
Tuple
,
std
::
size_t
I
,
std
::
size_t
...
Is
>
...
...
@@ -410,6 +417,8 @@ namespace Allen::Store {
using
prev_wrapped_tuple
=
WrappedTupleDetails
<
Tuple
,
std
::
index_sequence
<
Is
...
>>
;
using
parameters_tuple_t
=
typename
prev_wrapped_tuple
::
parameters_tuple_t
;
using
aggregates_tuple_t
=
typename
prev_wrapped_tuple
::
aggregates_tuple_t
;
using
unaltered_parameters_tuple_t
=
prepend_to_tuple_t
<
boost
::
pfr
::
tuple_element_t
<
I
,
Tuple
>
,
typename
prev_wrapped_tuple
::
unaltered_parameters_tuple_t
>
;
};
template
<
size_t
...
Is
>
...
...
@@ -426,6 +435,7 @@ namespace Allen::Store {
template
<
typename
T
>
using
ArgumentReferences
=
Allen
::
Store
::
StoreRef
<
typename
Allen
::
Store
::
WrappedTuple
<
T
>::
unaltered_parameters_tuple_t
,
typename
Allen
::
Store
::
WrappedTuple
<
T
>::
parameters_tuple_t
,
T
,
typename
Allen
::
Store
::
WrappedTuple
<
T
>::
aggregates_tuple_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