IAP GITLAB

Skip to content
Snippets Groups Projects
Commit d96918a7 authored by Dominik Baack's avatar Dominik Baack Committed by Ralf Ulrich
Browse files

renamed base process templates

parent 668ee2cf
No related branches found
No related tags found
No related merge requests found
...@@ -24,11 +24,21 @@ namespace corsika::process { ...@@ -24,11 +24,21 @@ namespace corsika::process {
*/ */
template <typename TDerived> template <typename TDerived>
<<<<<<< HEAD
class ContinuousProcess : public BaseProcess<TDerived> { class ContinuousProcess : public BaseProcess<TDerived> {
=======
class ContinuousProcess {
>>>>>>> renamed base process templates
private: private:
protected: protected:
public: public:
using _TDerived = TDerived; using _TDerived = TDerived;
<<<<<<< HEAD
=======
TDerived& GetRef() { return static_cast<TDerived&>(*this); }
const TDerived& GetRef() const { return static_cast<const TDerived&>(*this); }
>>>>>>> renamed base process templates
// here starts the interface part // here starts the interface part
// -> enforce TDerived to implement DoContinuous... // -> enforce TDerived to implement DoContinuous...
......
...@@ -25,11 +25,25 @@ namespace corsika::process { ...@@ -25,11 +25,25 @@ namespace corsika::process {
*/ */
template <typename TDerived> template <typename TDerived>
<<<<<<< HEAD
class InteractionProcess : public BaseProcess<TDerived> { class InteractionProcess : public BaseProcess<TDerived> {
public: public:
using _TDerived = TDerived; using _TDerived = TDerived;
using BaseProcess<TDerived>::GetRef; using BaseProcess<TDerived>::GetRef;
=======
class InteractionProcess {
private:
protected:
using _TDerived = TDerived;
public:
TDerived& GetRef() { return static_cast<TDerived&>(*this); }
const TDerived& GetRef() const { return static_cast<const TDerived&>(*this); }
>>>>>>> renamed base process templates
/// here starts the interface-definition part /// here starts the interface-definition part
// -> enforce TDerived to implement DoInteraction... // -> enforce TDerived to implement DoInteraction...
......
...@@ -25,10 +25,23 @@ namespace corsika::process { ...@@ -25,10 +25,23 @@ namespace corsika::process {
*/ */
template <typename TDerived> template <typename TDerived>
<<<<<<< HEAD
class SecondariesProcess : public BaseProcess<TDerived> { class SecondariesProcess : public BaseProcess<TDerived> {
public: public:
using _TDerived = TDerived; using _TDerived = TDerived;
=======
class SecondariesProcess {
private:
protected:
using _TDerived = TDerived;
public:
TDerived& GetRef() { return static_cast<TDerived&>(*this); }
const TDerived& GetRef() const { return static_cast<const TDerived&>(*this); }
>>>>>>> renamed base process templates
/// here starts the interface-definition part /// here starts the interface-definition part
// -> enforce TDerived to implement DoSecondaries... // -> enforce TDerived to implement DoSecondaries...
template <typename TSecondaries> template <typename TSecondaries>
......
...@@ -35,6 +35,12 @@ namespace corsika::process { ...@@ -35,6 +35,12 @@ namespace corsika::process {
StackProcess(const unsigned int nStep) StackProcess(const unsigned int nStep)
: fNStep(nStep) {} : fNStep(nStep) {}
<<<<<<< HEAD
=======
TDerived& GetRef() { return static_cast<TDerived&>(*this); }
const TDerived& GetRef() const { return static_cast<const TDerived&>(*this); }
>>>>>>> renamed base process templates
/// here starts the interface-definition part /// here starts the interface-definition part
// -> enforce TDerived to implement DoStack... // -> enforce TDerived to implement DoStack...
template <typename TStack> template <typename TStack>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment