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
0c30c2c0
Commit
0c30c2c0
authored
2 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
ZLimits: rm operator<<; rm TODO note on operator==
parent
1083d5f0
No related branches found
No related tags found
1 merge request
!1174
IFormFactor and children: replace BottomZ, TopZ by spanZ
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Resample/Slice/ZLimits.cpp
+0
-7
0 additions, 7 deletions
Resample/Slice/ZLimits.cpp
Resample/Slice/ZLimits.h
+1
-2
1 addition, 2 deletions
Resample/Slice/ZLimits.h
with
1 addition
and
9 deletions
Resample/Slice/ZLimits.cpp
+
0
−
7
View file @
0c30c2c0
...
@@ -22,8 +22,6 @@ bool ZLimits::isFinite() const
...
@@ -22,8 +22,6 @@ bool ZLimits::isFinite() const
return
!
std
::
isinf
(
low
())
&&
!
std
::
isinf
(
hig
());
return
!
std
::
isinf
(
low
())
&&
!
std
::
isinf
(
hig
());
}
}
// TODO sep22: rm all the following if they remain UNUSED
ZLimits
ZLimits
::
unite
(
const
ZLimits
&
left
,
const
ZLimits
&
right
)
ZLimits
ZLimits
::
unite
(
const
ZLimits
&
left
,
const
ZLimits
&
right
)
{
{
return
{
std
::
min
(
left
.
low
(),
right
.
low
()),
std
::
max
(
left
.
hig
(),
right
.
hig
())};
return
{
std
::
min
(
left
.
low
(),
right
.
low
()),
std
::
max
(
left
.
hig
(),
right
.
hig
())};
...
@@ -38,8 +36,3 @@ bool operator!=(const ZLimits& left, const ZLimits& right)
...
@@ -38,8 +36,3 @@ bool operator!=(const ZLimits& left, const ZLimits& right)
{
{
return
!
(
left
==
right
);
return
!
(
left
==
right
);
}
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
ostr
,
const
ZLimits
&
limits
)
{
return
ostr
<<
"Lower: "
<<
limits
.
low
()
<<
", Upper: "
<<
limits
.
hig
();
}
This diff is collapsed.
Click to expand it.
Resample/Slice/ZLimits.h
+
1
−
2
View file @
0c30c2c0
...
@@ -51,10 +51,9 @@ public:
...
@@ -51,10 +51,9 @@ public:
static
ZLimits
unite
(
const
ZLimits
&
left
,
const
ZLimits
&
right
);
static
ZLimits
unite
(
const
ZLimits
&
left
,
const
ZLimits
&
right
);
};
};
// used in ZLimitsTest:
bool
operator
==
(
const
ZLimits
&
left
,
const
ZLimits
&
right
);
bool
operator
==
(
const
ZLimits
&
left
,
const
ZLimits
&
right
);
bool
operator
!=
(
const
ZLimits
&
left
,
const
ZLimits
&
right
);
bool
operator
!=
(
const
ZLimits
&
left
,
const
ZLimits
&
right
);
std
::
ostream
&
operator
<<
(
std
::
ostream
&
ostr
,
const
ZLimits
&
limits
);
#endif // BORNAGAIN_RESAMPLE_SLICE_ZLIMITS_H
#endif // BORNAGAIN_RESAMPLE_SLICE_ZLIMITS_H
#endif // USER_API
#endif // USER_API
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