MaMiCo 1.2
Loading...
Searching...
No Matches
coupling::datastructures::FlexibleCellContainer< dim >::Iterator Class Reference

Provides iterator functionality (increment, access as <*cell, index> pair, equality) More...

#include <FlexibleCellContainer.h>

Public Types

using CouplingCellIterator = typename std::vector<coupling::datastructures::CouplingCell<dim>*>::const_iterator
 
using IndexIterator = std::vector<I01>::const_iterator
 

Public Member Functions

 Iterator (CouplingCellIterator itCouplingCells, IndexIterator itIdxs)
 
const std::pair< coupling::datastructures::CouplingCell< dim > *, I01operator* () const
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 

Private Attributes

CouplingCellIterator _itCouplingCells
 
IndexIterator _itIdxs
 

Friends

bool operator== (const Iterator &a, const Iterator &b)
 
bool operator!= (const Iterator &a, const Iterator &b)
 

Detailed Description

template<unsigned int dim>
class coupling::datastructures::FlexibleCellContainer< dim >::Iterator

Provides iterator functionality (increment, access as <*cell, index> pair, equality)

Member Function Documentation

◆ operator*()

template<unsigned int dim>
const std::pair< coupling::datastructures::CouplingCell< dim > *, I01 > coupling::datastructures::FlexibleCellContainer< dim >::Iterator::operator* ( ) const
inline

Iterator access, returning the data at the current iterator location

Returns
a std::pair with the cell pointer and the index of the data that the iterator points to

Member Data Documentation

◆ _itCouplingCells

template<unsigned int dim>
CouplingCellIterator coupling::datastructures::FlexibleCellContainer< dim >::Iterator::_itCouplingCells
private

Iterator to underlying cell* vector

◆ _itIdxs

template<unsigned int dim>
IndexIterator coupling::datastructures::FlexibleCellContainer< dim >::Iterator::_itIdxs
private

Iterator to underlying index vector


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