IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue 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
Pranav Sampathkumar
corsika
Commits
05ce8856
Commit
05ce8856
authored
2 years ago
by
Maximilian Reininghaus
Browse files
Options
Downloads
Patches
Plain Diff
VolumeTreeNode::walk() made const
parent
a06216b6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/detail/media/VolumeTreeNode.inl
+2
-2
2 additions, 2 deletions
corsika/detail/media/VolumeTreeNode.inl
corsika/media/VolumeTreeNode.hpp
+1
-1
1 addition, 1 deletion
corsika/media/VolumeTreeNode.hpp
with
3 additions
and
3 deletions
corsika/detail/media/VolumeTreeNode.inl
+
2
−
2
View file @
05ce8856
...
...
@@ -54,11 +54,11 @@ namespace corsika {
template
<
typename
IModelProperties
>
template
<
typename
TCallable
,
bool
preorder
>
inline
void
VolumeTreeNode
<
IModelProperties
>::
walk
(
TCallable
func
)
{
inline
void
VolumeTreeNode
<
IModelProperties
>::
walk
(
TCallable
func
)
const
{
if
constexpr
(
preorder
)
{
func
(
*
this
);
}
std
::
for_each
(
childNodes_
.
begin
(),
childNodes_
.
end
(),
[
&
](
auto
&
v
)
{
v
->
walk
(
func
);
});
[
&
](
auto
const
&
v
)
{
v
->
walk
(
func
);
});
if
constexpr
(
!
preorder
)
{
func
(
*
this
);
};
}
...
...
This diff is collapsed.
Click to expand it.
corsika/media/VolumeTreeNode.hpp
+
1
−
1
View file @
05ce8856
...
...
@@ -44,7 +44,7 @@ namespace corsika {
* func is ignored.
*/
template
<
typename
TCallable
,
bool
preorder
=
true
>
void
walk
(
TCallable
func
);
void
walk
(
TCallable
func
)
const
;
void
addChild
(
VTNUPtr
pChild
);
...
...
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