pops-core  0.9
PoPS (Pest or Pathogen Spread) Model Core C++ library
Public Member Functions | List of all members
pops::Network< RasterIndex >::SegmentView Class Reference

A const view of a Segment which can be iterated. More...

#include <network_kernel.hpp>

Public Member Functions

 SegmentView (typename Segment::const_iterator first, typename Segment::const_iterator last)
 
 SegmentView (typename Segment::const_reverse_iterator first, typename Segment::const_reverse_iterator last)
 
ConstEitherWayIterator< Segmentbegin () const
 
ConstEitherWayIterator< Segmentend () const
 

Detailed Description

template<typename RasterIndex>
class pops::Network< RasterIndex >::SegmentView

A const view of a Segment which can be iterated.

Depending on which iterators are passed in the constructor, the view is in the forward direction of the Segment or in reverse. The view can also be a subset. The view supports only const iterators.

Definition at line 481 of file network_kernel.hpp.

Constructor & Destructor Documentation

◆ SegmentView() [1/2]

template<typename RasterIndex >
pops::Network< RasterIndex >::SegmentView::SegmentView ( typename Segment::const_iterator  first,
typename Segment::const_iterator  last 
)
inline

Definition at line 484 of file network_kernel.hpp.

◆ SegmentView() [2/2]

template<typename RasterIndex >
pops::Network< RasterIndex >::SegmentView::SegmentView ( typename Segment::const_reverse_iterator  first,
typename Segment::const_reverse_iterator  last 
)
inline

Definition at line 489 of file network_kernel.hpp.

Member Function Documentation

◆ begin()

template<typename RasterIndex >
ConstEitherWayIterator<Segment> pops::Network< RasterIndex >::SegmentView::begin ( ) const
inline

Definition at line 494 of file network_kernel.hpp.

◆ end()

template<typename RasterIndex >
ConstEitherWayIterator<Segment> pops::Network< RasterIndex >::SegmentView::end ( ) const
inline

Definition at line 498 of file network_kernel.hpp.


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