DisCostiC v2.0.0
Distributed Cost in Cluster: a cross-architecture simulator for massively parallel MPI programs
Loading...
Searching...
No Matches
DisCosTiC::iteratorRange< scalarT > Struct Template Reference

iterator ranges for each entityTypes to support iteration with range-based for loops. Iterating over sets of entityTypes is one of the most common operation. Our infrastructure implements this custom range-based for loops in the C++ ways by providing iterators and matching begin(), end() and stepSize(scalarT stepSize) methods. More...

#include <DataType.hpp>

+ Collaboration diagram for DisCosTiC::iteratorRange< scalarT >:

Classes

struct  iter
 
struct  iteratorRangeStep
 wrapper class of range-based for loop with certain step size More...
 

Public Member Functions

iteratorRangeStep stepSize (scalarT stepSize)
 Constructs an iterator range on [begin,end) with certain stepSize.
 
 iteratorRange (scalarT begin, scalarT end)
 Constructs an iterator range on [begin,end)
 
iter begin () const
 returns an iterator pointing to the begin of the range
 
iter end () const
 returns an iterator pointing past the end of the range
 

Private Attributes

iter begin_
 
iter end_
 

Detailed Description

template<typename scalarT>
struct DisCosTiC::iteratorRange< scalarT >

iterator ranges for each entityTypes to support iteration with range-based for loops. Iterating over sets of entityTypes is one of the most common operation. Our infrastructure implements this custom range-based for loops in the C++ ways by providing iterators and matching begin(), end() and stepSize(scalarT stepSize) methods.

Definition at line 103 of file DataType.hpp.

Constructor & Destructor Documentation

◆ iteratorRange()

template<typename scalarT >
DisCosTiC::iteratorRange< scalarT >::iteratorRange ( scalarT begin,
scalarT end )
inline

Constructs an iterator range on [begin,end)

Definition at line 149 of file DataType.hpp.

Member Function Documentation

◆ begin()

template<typename scalarT >
iter DisCosTiC::iteratorRange< scalarT >::begin ( ) const
inline

returns an iterator pointing to the begin of the range

Definition at line 151 of file DataType.hpp.

References DisCosTiC::iteratorRange< scalarT >::begin_.

◆ end()

template<typename scalarT >
iter DisCosTiC::iteratorRange< scalarT >::end ( ) const
inline

returns an iterator pointing past the end of the range

Definition at line 153 of file DataType.hpp.

References DisCosTiC::iteratorRange< scalarT >::end_.

◆ stepSize()

template<typename scalarT >
iteratorRangeStep DisCosTiC::iteratorRange< scalarT >::stepSize ( scalarT stepSize)
inline

Constructs an iterator range on [begin,end) with certain stepSize.

Definition at line 143 of file DataType.hpp.

References DisCosTiC::iteratorRange< scalarT >::begin_, DisCosTiC::iteratorRange< scalarT >::end_, and DisCosTiC::iteratorRange< scalarT >::stepSize().

Referenced by DisCosTiC::iteratorRange< scalarT >::stepSize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ begin_

template<typename scalarT >
iter DisCosTiC::iteratorRange< scalarT >::begin_
private

◆ end_

template<typename scalarT >
iter DisCosTiC::iteratorRange< scalarT >::end_
private

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