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
c54154bd
Commit
c54154bd
authored
3 years ago
by
Maximilian Reininghaus
Committed by
Maximilian Reininghaus
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
delete copy and move constructors of CoordinateSystem
parent
ccb8db9c
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/framework/geometry/CoordinateSystem.inl
+4
-5
4 additions, 5 deletions
corsika/detail/framework/geometry/CoordinateSystem.inl
corsika/framework/geometry/CoordinateSystem.hpp
+2
-4
2 additions, 4 deletions
corsika/framework/geometry/CoordinateSystem.hpp
with
6 additions
and
9 deletions
corsika/detail/framework/geometry/CoordinateSystem.inl
+
4
−
5
View file @
c54154bd
...
...
@@ -75,7 +75,7 @@ namespace corsika {
inline
CoordinateSystemPtr
make_translation
(
CoordinateSystemPtr
const
&
cs
,
QuantityVector
<
length_d
>
const
&
vector
)
{
EigenTransform
const
translation
{
EigenTranslation
(
vector
.
getEigenVector
())};
return
std
::
make_shared
<
CoordinateSystem
const
>
(
CoordinateSystem
(
cs
,
translation
)
)
;
return
CoordinateSystem
Ptr
{
new
CoordinateSystem
(
cs
,
translation
)
}
;
}
template
<
typename
TDim
>
...
...
@@ -105,8 +105,7 @@ namespace corsika {
0
,
0
,
(
a1
*
a1
+
a2
*
a2
)
*
c
;
// .
}
return
std
::
make_shared
<
CoordinateSystem
const
>
(
CoordinateSystem
(
cs
,
EigenTransform
(
A
+
B
)));
return
CoordinateSystemPtr
{
new
CoordinateSystem
{
cs
,
EigenTransform
{
A
+
B
}}};
}
template
<
typename
TDim
>
...
...
@@ -120,7 +119,7 @@ namespace corsika {
EigenTransform
const
rotation
{
Eigen
::
AngleAxisd
(
angle
,
axis
.
getEigenVector
().
normalized
())};
return
std
::
make_shared
<
CoordinateSystem
const
>
(
CoordinateSystem
(
cs
,
rotation
))
;
return
CoordinateSystem
Ptr
{
new
CoordinateSystem
{
cs
,
rotation
}}
;
}
template
<
typename
TDim
>
...
...
@@ -135,7 +134,7 @@ namespace corsika {
Eigen
::
AngleAxisd
(
angle
,
axis
.
getEigenVector
().
normalized
())
*
EigenTranslation
(
translation
.
getEigenVector
())};
return
std
::
make_shared
<
CoordinateSystem
const
>
(
CoordinateSystem
(
cs
,
transf
))
;
return
CoordinateSystem
Ptr
{
new
CoordinateSystem
{
cs
,
transf
}}
;
}
}
// namespace corsika
This diff is collapsed.
Click to expand it.
corsika/framework/geometry/CoordinateSystem.hpp
+
2
−
4
View file @
c54154bd
...
...
@@ -109,8 +109,8 @@ namespace corsika {
public
:
// default resource allocation
CoordinateSystem
(
CoordinateSystem
const
&
)
=
de
fault
;
CoordinateSystem
(
CoordinateSystem
&&
)
=
de
fault
;
CoordinateSystem
(
CoordinateSystem
const
&
)
=
de
lete
;
CoordinateSystem
(
CoordinateSystem
&&
)
=
de
lete
;
CoordinateSystem
&
operator
=
(
CoordinateSystem
const
&
pCS
)
=
delete
;
// avoid making copies
~
CoordinateSystem
()
=
default
;
...
...
@@ -128,8 +128,6 @@ namespace corsika {
bool
operator
!=
(
CoordinateSystem
const
&
)
const
;
protected
:
static
CoordinateSystem
createCS
()
{
return
CoordinateSystem
();
}
/**
* \name Friends
* Manipulation and creation functions.
...
...
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