FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
FEAT::Adjacency::ImageRange< Adjactor_ > Class Template Reference

Wrapper for using range-based for loops with adjactors. More...

#include <adjactor.hpp>

Public Types

using Adjactor = Adjactor_
 
using ImageIterator = typename Adjactor::ImageIterator
 

Public Member Functions

 ImageRange (Adjactor &adjactor, Index domain_node)
 Constructor. More...
 
ImageIterator begin ()
 
ImageIterator end ()
 

Private Attributes

const Adjactor_ & _adj
 
Index _domain_node
 

Detailed Description

template<typename Adjactor_>
class FEAT::Adjacency::ImageRange< Adjactor_ >

Wrapper for using range-based for loops with adjactors.

Template Parameters
Adjactor_Adjactor type wrapped by this wrapper

This wrapper allows you to replace

for(auto it = adj.image_begin(n); it != adj.image_end(n); ++it)
{
const auto i = *it;
...
}

with

for(const auto i : Adjacency::ImageRange(adj, n))
{
...
}
Wrapper for using range-based for loops with adjactors.
Definition: adjactor.hpp:517

Definition at line 516 of file adjactor.hpp.

Member Typedef Documentation

◆ Adjactor

template<typename Adjactor_ >
using FEAT::Adjacency::ImageRange< Adjactor_ >::Adjactor = Adjactor_

Definition at line 519 of file adjactor.hpp.

◆ ImageIterator

template<typename Adjactor_ >
using FEAT::Adjacency::ImageRange< Adjactor_ >::ImageIterator = typename Adjactor::ImageIterator

Definition at line 521 of file adjactor.hpp.

Constructor & Destructor Documentation

◆ ImageRange()

template<typename Adjactor_ >
FEAT::Adjacency::ImageRange< Adjactor_ >::ImageRange ( Adjactor &  adjactor,
Index  domain_node 
)
inline

Constructor.

Definition at line 528 of file adjactor.hpp.

Member Function Documentation

◆ begin()

template<typename Adjactor_ >
ImageIterator FEAT::Adjacency::ImageRange< Adjactor_ >::begin ( )
inline

Definition at line 532 of file adjactor.hpp.

◆ end()

template<typename Adjactor_ >
ImageIterator FEAT::Adjacency::ImageRange< Adjactor_ >::end ( )
inline

Definition at line 537 of file adjactor.hpp.

Member Data Documentation

◆ _adj

template<typename Adjactor_ >
const Adjactor_& FEAT::Adjacency::ImageRange< Adjactor_ >::_adj
private

Definition at line 523 of file adjactor.hpp.

◆ _domain_node

template<typename Adjactor_ >
Index FEAT::Adjacency::ImageRange< Adjactor_ >::_domain_node
private

Definition at line 524 of file adjactor.hpp.


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