|
DisCostiC v2.0.0
Distributed Cost in Cluster: a cross-architecture simulator for massively parallel MPI programs
|
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_ |
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.
|
inline |
Constructs an iterator range on [begin,end)
Definition at line 149 of file DataType.hpp.
|
inline |
returns an iterator pointing to the begin of the range
Definition at line 151 of file DataType.hpp.
References DisCosTiC::iteratorRange< scalarT >::begin_.
|
inline |
returns an iterator pointing past the end of the range
Definition at line 153 of file DataType.hpp.
References DisCosTiC::iteratorRange< scalarT >::end_.
|
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:
|
private |
Definition at line 156 of file DataType.hpp.
Referenced by DisCosTiC::iteratorRange< scalarT >::begin(), and DisCosTiC::iteratorRange< scalarT >::stepSize().
|
private |
Definition at line 157 of file DataType.hpp.
Referenced by DisCosTiC::iteratorRange< scalarT >::end(), and DisCosTiC::iteratorRange< scalarT >::stepSize().