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
1 merge request!253Add benchmark processor and dummy processors
......@@ -28,8 +28,14 @@ namespace corsika::process {
private:
protected:
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
// -> enforce TDerived to implement DoContinuous...
template <typename TParticle, typename TTrack>
......
......@@ -26,7 +26,9 @@ namespace corsika::process {
template <typename TDerived>
class InteractionProcess : public BaseProcess<TDerived> {
public:
using _TDerived = TDerived;
using BaseProcess<TDerived>::GetRef;
/// here starts the interface-definition part
......
......@@ -26,7 +26,9 @@ namespace corsika::process {
template <typename TDerived>
class SecondariesProcess : public BaseProcess<TDerived> {
public:
using _TDerived = TDerived;
/// here starts the interface-definition part
// -> enforce TDerived to implement DoSecondaries...
template <typename TSecondaries>
......
......@@ -25,13 +25,22 @@ namespace corsika::process {
*/
template <typename TDerived>
class StackProcess : public BaseProcess<TDerived> {
class StackProcess : public BaseProcess<TDerived>{
private:
protected:
using _TDerived = TDerived;
public:
StackProcess() = delete;
StackProcess(const unsigned int 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
// -> enforce TDerived to implement DoStack...
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