IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 0e020327 authored by ralfulrich's avatar ralfulrich
Browse files

started stack view

parent bf82fa38
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,10 @@
#include <iomanip>
#include <iostream>
using namespace corsika;
using namespace corsika::units::si;
using namespace corsika::stack;
using namespace corsika;
using namespace corsika::geometry;
using namespace std;
void fill(corsika::stack::super_stupid::SuperStupidStack& s) {
......
......@@ -142,6 +142,8 @@ namespace corsika::stack {
StackIterator GetNextParticle() { return last(); }
protected:
unsigned int GetIndexFromIterator(const unsigned int vI) const { return vI; }
StackData& GetStackData() { return static_cast<StackData&>(*this); }
const StackData& GetStackData() const { return static_cast<const StackData&>(*this); }
};
......
......@@ -237,6 +237,7 @@ namespace corsika::stack {
*/
///@{
inline unsigned int GetIndex() const { return fIndex; }
// inline unsigned int GetIndex() const { return fData->GetIndexFromIterator(fIndex); }
inline const StackType& GetStack() const { return *fData; }
inline const StackData& GetStackData() const { return fData->GetStackData(); }
///@}
......
#ifndef _include_corsika_stack_stackview_h_
#define _include_corsika_stack_stackview_h_
#include <vector>
namespace corsika::stack {
......
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