walberla::domain_decomposition::BlockStorage::iterator Class Reference

#include <BlockStorage.h>

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = IBlock
 
using difference_type = std::ptrdiff_t
 
using pointer = IBlock *
 
using reference = IBlock &
 

Public Member Functions

 iterator (const iterator &it)=default
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
bool operator== (const iterator &rhs) const
 
bool operator!= (const iterator &rhs) const
 
IBlockget ()
 
IBlockoperator* ()
 
IBlockoperator-> ()
 

Private Member Functions

 iterator (BlockContainerType::iterator it, BlockContainerType::iterator end, const Set< SUID > &requiredSelectors=Set< SUID >::emptySet(), const Set< SUID > &incompatibleSelectors=Set< SUID >::emptySet())
 
void checkStateAndAdapt ()
 

Private Attributes

BlockContainerType::iterator it_
 
BlockContainerType::iterator end_
 
Set< SUID > requiredSelectors_
 
Set< SUID > incompatibleSelectors_
 

Friends

class const_iterator
 
class BlockStorage
 

Member Typedef Documentation

◆ difference_type

◆ iterator_category

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ iterator() [1/2]

walberla::domain_decomposition::BlockStorage::iterator::iterator ( const iterator it)
default

◆ iterator() [2/2]

walberla::domain_decomposition::BlockStorage::iterator::iterator ( BlockContainerType::iterator  it,
BlockContainerType::iterator  end,
const Set< SUID > &  requiredSelectors = Set<SUID>::emptySet(),
const Set< SUID > &  incompatibleSelectors = Set<SUID>::emptySet() 
)
inlineprivate

Member Function Documentation

◆ checkStateAndAdapt()

void walberla::domain_decomposition::BlockStorage::iterator::checkStateAndAdapt ( )
inlineprivate

◆ get()

IBlock* walberla::domain_decomposition::BlockStorage::iterator::get ( )
inline

◆ operator!=()

bool walberla::domain_decomposition::BlockStorage::iterator::operator!= ( const iterator rhs) const
inline

◆ operator*()

IBlock& walberla::domain_decomposition::BlockStorage::iterator::operator* ( )
inline

◆ operator++() [1/2]

iterator& walberla::domain_decomposition::BlockStorage::iterator::operator++ ( )
inline

◆ operator++() [2/2]

iterator walberla::domain_decomposition::BlockStorage::iterator::operator++ ( int  )
inline

◆ operator->()

IBlock* walberla::domain_decomposition::BlockStorage::iterator::operator-> ( )
inline

◆ operator==()

bool walberla::domain_decomposition::BlockStorage::iterator::operator== ( const iterator rhs) const
inline

Friends And Related Function Documentation

◆ BlockStorage

friend class BlockStorage
friend

◆ const_iterator

friend class const_iterator
friend

Member Data Documentation

◆ end_

BlockContainerType::iterator walberla::domain_decomposition::BlockStorage::iterator::end_
private

◆ incompatibleSelectors_

Set<SUID> walberla::domain_decomposition::BlockStorage::iterator::incompatibleSelectors_
private

◆ it_

BlockContainerType::iterator walberla::domain_decomposition::BlockStorage::iterator::it_
private

◆ requiredSelectors_

Set<SUID> walberla::domain_decomposition::BlockStorage::iterator::requiredSelectors_
private

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