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
d0bdb705
Verified
Commit
d0bdb705
authored
8 months ago
by
Santiago Ospina De Los Ríos
Browse files
Options
Downloads
Patches
Plain Diff
Add comment on custom prefix
parent
5d2b1a28
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1349
Add special internal constructor for empty static parameter tree
Pipeline
#72807
passed with warnings
8 months ago
Stage: .pre
Stage: test
Stage: code_quality
Stage: downstream
Pipeline: Dune Nightly Test
#72816
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/common/parametertree.cc
+3
-0
3 additions, 0 deletions
dune/common/parametertree.cc
dune/common/parametertree.hh
+3
-3
3 additions, 3 deletions
dune/common/parametertree.hh
with
6 additions
and
3 deletions
dune/common/parametertree.cc
+
3
−
0
View file @
d0bdb705
...
...
@@ -20,6 +20,9 @@ using namespace Dune;
ParameterTree
::
ParameterTree
()
{}
// Since this (internal) tree is static and constant, its prefix cannot be changed even
// though we report it as the sub-tree of another one (in `.sub(prefix) const`).
// Thus, we set the prefix as "<unknown>" to inform users that we could not construct the real prefix.
ParameterTree
::
ParameterTree
(
ParameterTree
::
EmptyTag
)
:
prefix_
{
"<unknown>"
}
{}
...
...
This diff is collapsed.
Click to expand it.
dune/common/parametertree.hh
+
3
−
3
View file @
d0bdb705
...
...
@@ -40,6 +40,9 @@ namespace Dune {
template
<
typename
T
>
struct
Parser
;
struct
EmptyTag
{};
ParameterTree
(
EmptyTag
);
public
:
/** \brief storage for key lists
...
...
@@ -207,9 +210,6 @@ namespace Dune {
protected
:
struct
EmptyTag
{};
ParameterTree
(
EmptyTag
);
static
const
ParameterTree
empty_
;
std
::
string
prefix_
;
...
...
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