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
1bfdb3ad
Commit
1bfdb3ad
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
mv fct to Frame
parent
361f184c
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Base/Axis/Frame.cpp
+5
-0
5 additions, 0 deletions
Base/Axis/Frame.cpp
Base/Axis/Frame.h
+4
-0
4 additions, 0 deletions
Base/Axis/Frame.h
Device/Coord/ICoordSystem.cpp
+0
-5
0 additions, 5 deletions
Device/Coord/ICoordSystem.cpp
Device/Coord/ICoordSystem.h
+0
-2
0 additions, 2 deletions
Device/Coord/ICoordSystem.h
with
9 additions
and
7 deletions
Base/Axis/Frame.cpp
+
5
−
0
View file @
1bfdb3ad
...
...
@@ -109,6 +109,11 @@ bool Frame::operator==(const Frame& o) const
return
true
;
}
std
::
vector
<
const
Scale
*>
Frame
::
clonedAxes
()
const
{
return
m_axes
.
cloned_vector
();
}
bool
Frame
::
hasSameSizes
(
const
Frame
&
o
)
const
{
if
(
rank
()
!=
o
.
rank
())
...
...
This diff is collapsed.
Click to expand it.
Base/Axis/Frame.h
+
4
−
0
View file @
1bfdb3ad
...
...
@@ -75,6 +75,10 @@ public:
//! Returns true if both Frame%s have same rank, and all axes are equal.
bool
operator
==
(
const
Frame
&
)
const
;
#ifndef SWIG
std
::
vector
<
const
Scale
*>
clonedAxes
()
const
;
#endif // SWIG
protected:
OwningVector
<
const
Scale
>
m_axes
;
...
...
This diff is collapsed.
Click to expand it.
Device/Coord/ICoordSystem.cpp
+
0
−
5
View file @
1bfdb3ad
...
...
@@ -23,8 +23,3 @@ ICoordSystem::ICoordSystem(std::vector<const Scale*>&& axes)
}
ICoordSystem
::~
ICoordSystem
()
=
default
;
std
::
vector
<
const
Scale
*>
ICoordSystem
::
clonedAxes
()
const
{
return
m_axes
.
cloned_vector
();
}
This diff is collapsed.
Click to expand it.
Device/Coord/ICoordSystem.h
+
0
−
2
View file @
1bfdb3ad
...
...
@@ -31,8 +31,6 @@ public:
ICoordSystem
*
clone
()
const
override
=
0
;
virtual
std
::
string
nameOfAxis
(
size_t
i_axis
)
const
=
0
;
std
::
vector
<
const
Scale
*>
clonedAxes
()
const
;
};
#endif // BORNAGAIN_DEVICE_COORD_ICOORDSYSTEM_H
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