Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
a0ba566d
Commit
a0ba566d
authored
4 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
clang-format
parent
1246a344
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Param/Node/INode.cpp
+2
-3
2 additions, 3 deletions
Param/Node/INode.cpp
with
2 additions
and
3 deletions
Param/Node/INode.cpp
+
2
−
3
View file @
a0ba566d
...
@@ -64,13 +64,12 @@ std::vector<const INode*> INode::progeny() const {
...
@@ -64,13 +64,12 @@ std::vector<const INode*> INode::progeny() const {
std
::
vector
<
const
INode
*>
result
;
std
::
vector
<
const
INode
*>
result
;
result
.
push_back
(
this
);
result
.
push_back
(
this
);
for
(
const
auto
*
child
:
getChildren
())
{
for
(
const
auto
*
child
:
getChildren
())
{
for
(
const
auto
*
p
:
child
->
progeny
())
for
(
const
auto
*
p
:
child
->
progeny
())
result
.
push_back
(
p
);
result
.
push_back
(
p
);
}
}
return
result
;
return
result
;
}
}
void
INode
::
setParent
(
const
INode
*
newParent
)
{
void
INode
::
setParent
(
const
INode
*
newParent
)
{
m_parent
=
newParent
;
m_parent
=
newParent
;
}
}
...
@@ -116,7 +115,7 @@ std::string INode::displayName() const {
...
@@ -116,7 +115,7 @@ std::string INode::displayName() const {
ParameterPool
*
INode
::
createParameterTree
()
const
{
ParameterPool
*
INode
::
createParameterTree
()
const
{
std
::
unique_ptr
<
ParameterPool
>
result
(
new
ParameterPool
);
std
::
unique_ptr
<
ParameterPool
>
result
(
new
ParameterPool
);
for
(
const
INode
*
child
:
progeny
())
{
for
(
const
INode
*
child
:
progeny
())
{
const
std
::
string
path
=
NodeUtils
::
nodePath
(
*
child
,
this
->
parent
())
+
"/"
;
const
std
::
string
path
=
NodeUtils
::
nodePath
(
*
child
,
this
->
parent
())
+
"/"
;
child
->
parameterPool
()
->
copyToExternalPool
(
path
,
result
.
get
());
child
->
parameterPool
()
->
copyToExternalPool
(
path
,
result
.
get
());
}
}
...
...
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