IAP GITLAB

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

renamed base process templates

parent 8ab149dc
No related branches found
No related tags found
No related merge requests found
...@@ -28,8 +28,14 @@ namespace corsika::process { ...@@ -28,8 +28,14 @@ namespace corsika::process {
private: private:
protected: protected:
public: public:
using TDerived = derived; 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...
template <typename TParticle, typename TTrack> template <typename TParticle, typename TTrack>
......
...@@ -26,7 +26,9 @@ namespace corsika::process { ...@@ -26,7 +26,9 @@ namespace corsika::process {
template <typename TDerived> template <typename TDerived>
class InteractionProcess : public BaseProcess<TDerived> { class InteractionProcess : public BaseProcess<TDerived> {
public:
using _TDerived = TDerived;
using BaseProcess<TDerived>::GetRef; using BaseProcess<TDerived>::GetRef;
/// here starts the interface-definition part /// here starts the interface-definition part
......
...@@ -26,7 +26,9 @@ namespace corsika::process { ...@@ -26,7 +26,9 @@ namespace corsika::process {
template <typename TDerived> template <typename TDerived>
class SecondariesProcess : public BaseProcess<TDerived> { class SecondariesProcess : public BaseProcess<TDerived> {
public:
using _TDerived = TDerived;
/// 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>
......
...@@ -25,13 +25,22 @@ namespace corsika::process { ...@@ -25,13 +25,22 @@ namespace corsika::process {
*/ */
template <typename TDerived> template <typename TDerived>
class StackProcess : public BaseProcess<TDerived> { class StackProcess : public BaseProcess<TDerived>{
private:
protected:
using _TDerived = TDerived;
public: public:
StackProcess() = delete; StackProcess() = delete;
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