CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
ContinuousProcessIndex.hpp
1 /*
2  * (c) Copyright 2021 CORSIKA Project, corsika-project@lists.kit.edu
3  *
4  * This software is distributed under the terms of the GNU General Public
5  * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
6  * the license.
7  */
8 
9 #pragma once
10 
11 namespace corsika {
12 
20  public:
22  : id_(nullptr) {} // default
23  ContinuousProcessIndex(void const* id)
24  : id_(id) {}
25  void setIndex(void const* id) { id_ = id; }
26  void const* getIndex() const { return id_; }
27  bool operator==(ContinuousProcessIndex const v) const { return id_ == v.id_; }
28  bool operator!=(ContinuousProcessIndex const v) const { return !(*this == v); }
29 
30  private:
31  void const* id_;
32  };
33 
34 } // namespace corsika
To index individual processes (continuous processes) inside a ProcessSequence.
`, since they are used everywhere as integral part of the framework.