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
91576eb2
Commit
91576eb2
authored
4 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
added missing file
parent
159919b1
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
Environment/IEmpty.hpp
+45
-0
45 additions, 0 deletions
Environment/IEmpty.hpp
with
45 additions
and
0 deletions
Environment/IEmpty.hpp
0 → 100644
+
45
−
0
View file @
91576eb2
/*
* (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu
*
* This software is distributed under the terms of the GNU General Public
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
* the license.
*/
#pragma once
#include
<corsika/units/PhysicalUnits.h>
#include
<corsika/geometry/Trajectory.h>
namespace
corsika
::
environment
{
/**
* \class IEmpty
*
* intended for usage as default template argument for environments
* with no properties. For now, the ArclengthFromGrammage is
* mandatory, since it is used even in the most simple Cascade code.
*
* - IEmpty is the interface definition.
* - Empty<IEmpty> is a possible model implementation
*
**/
class
IEmpty
{
public:
virtual
corsika
::
units
::
si
::
LengthType
ArclengthFromGrammage
(
corsika
::
geometry
::
LineTrajectory
const
&
,
corsika
::
units
::
si
::
GrammageType
)
const
=
0
;
};
template
<
typename
TModel
=
IEmpty
>
class
Empty
:
public
TModel
{
public:
corsika
::
units
::
si
::
LengthType
ArclengthFromGrammage
(
corsika
::
geometry
::
LineTrajectory
const
&
,
corsika
::
units
::
si
::
GrammageType
)
const
{
return
0.
*
corsika
::
units
::
si
::
meter
;
}
};
}
// namespace corsika::environment
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