CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
corsika::WeightProviderIterator< AConstIterator, BConstIterator > Class Template Reference

Double Iterator Iterator that allowes the iteration of two individual lists at the same time. More...

#include <WeightProvider.hpp>

Public Types

using value_type = double
 
using iterator_category = std::input_iterator_tag
 
using pointer = value_type *
 
using reference = value_type &
 
using difference_type = ptrdiff_t
 

Public Member Functions

 WeightProviderIterator (AConstIterator a, BConstIterator b)
 
value_type operator* () const
 
WeightProviderIteratoroperator++ ()
 
bool operator== (WeightProviderIterator other)
 
bool operator!= (WeightProviderIterator other)
 

Detailed Description

template<class AConstIterator, class BConstIterator>
class corsika::WeightProviderIterator< AConstIterator, BConstIterator >

Double Iterator Iterator that allowes the iteration of two individual lists at the same time.

The user needs to take care that booth lists have the same length.

Template Parameters
AConstIteratorIterator Type of the first list
BConstIteratorIterator Type of the second list
Todo:

TODO: replace with https://www.boost.org/doc/libs/1_74_0/libs/iterator/doc/zip_iterator.html or ranges zip

check resource allocation

Definition at line 26 of file WeightProvider.hpp.


The documentation for this class was generated from the following file: