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
7bc8214f
Commit
7bc8214f
authored
5 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
some extra comments
parent
ed16c4a7
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
Setup/SetupStack.h
+35
-2
35 additions, 2 deletions
Setup/SetupStack.h
with
35 additions
and
2 deletions
Setup/SetupStack.h
+
35
−
2
View file @
7bc8214f
...
...
@@ -29,6 +29,12 @@
// definition of stack-data object to store geometry information
template
<
typename
TEnvType
>
/**
* @class GeometryData
*
* definition of stack-data object to store geometry information
*/
class
GeometryData
{
public:
...
...
@@ -57,8 +63,12 @@ private:
std
::
vector
<
const
BaseNodeType
*>
fNode
;
};
// defintion of a stack-readout object, the iteractor dereference
// operator will deliver access to these function
/**
* @class GeometryDataInterface
*
* corresponding defintion of a stack-readout object, the iteractor
* dereference operator will deliver access to these function
*/
template
<
typename
T
,
typename
TEnvType
>
class
GeometryDataInterface
:
public
T
{
...
...
@@ -120,6 +130,29 @@ namespace corsika::setup {
// this is the REAL stack we use:
using
Stack
=
detail
::
StackWithGeometry
;
/*
See Issue 161
unfortunately clang does not support this in the same way (yet) as
gcc, so we have to distinguish here. If clang cataches up, we
could remove the clang branch here and also in
corsika::Cascade. The gcc code is much more generic and
universal. If we could do the gcc version, we won't had to define
StackView globally, we could do it with MakeView whereever it is
actually needed. Keep an eye on this!
*/
#if defined(__clang__)
using
StackView
=
corsika
::
stack
::
SecondaryView
<
typename
corsika
::
setup
::
Stack
::
StackImpl
,
corsika
::
setup
::
detail
::
StackWithGeometryInterface
>
;
#elif defined(__GNUC__) || defined(__GNUG__)
template
<
typename
S
,
template
<
typename
>
typename
_PIType
=
S
::
template
PIType
>
struct
MakeView
{
using
type
=
corsika
::
stack
::
SecondaryView
<
typename
S
::
StackImpl
,
_PIType
>;
};
using
StackView
=
MakeView
<
corsika
::
setup
::
Stack
>::
type
;
#endif
}
// namespace corsika::setup
#endif
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