MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
nDim_iterator_t< base_iterator, SolverType > Class Template Reference

#include <fvstg.h>

Inheritance diagram for nDim_iterator_t< base_iterator, SolverType >:
[legend]
Collaboration diagram for nDim_iterator_t< base_iterator, SolverType >:
[legend]

Public Types

using value_type = typename base_iterator::value_type
 

Public Member Functions

 nDim_iterator_t ()=default
 
 nDim_iterator_t (base_iterator it, const AccessorUnstructured< SolverType > *parent)
 
value_type getCellId () const
 
value_type getStgId () const
 
value_type getNghbr (MInt dir) const
 

Private Attributes

const AccessorUnstructured< SolverType > * p {}
 

Detailed Description

template<class base_iterator, class SolverType>
class nDim_iterator_t< base_iterator, SolverType >

This iterator class wrapps around std::vector<MInt>::iterator Use this iterator to iterate either over m_stgId or m_bcStgId, i.e., to iterate over lists containing stg ids

Definition at line 62 of file fvstg.h.

Member Typedef Documentation

◆ value_type

template<class base_iterator , class SolverType >
using nDim_iterator_t< base_iterator, SolverType >::value_type = typename base_iterator::value_type

Definition at line 64 of file fvstg.h.

Constructor & Destructor Documentation

◆ nDim_iterator_t() [1/2]

template<class base_iterator , class SolverType >
nDim_iterator_t< base_iterator, SolverType >::nDim_iterator_t ( )
default

◆ nDim_iterator_t() [2/2]

template<class base_iterator , class SolverType >
nDim_iterator_t< base_iterator, SolverType >::nDim_iterator_t ( base_iterator  it,
const AccessorUnstructured< SolverType > *  parent 
)
inline

Definition at line 68 of file fvstg.h.

68: base_iterator(it), p(parent) {}
const AccessorUnstructured< SolverType > * p
Definition: fvstg.h:79

Member Function Documentation

◆ getCellId()

template<class base_iterator , class SolverType >
nDim_iterator_t< base_iterator, SolverType >::value_type nDim_iterator_t< base_iterator, SolverType >::getCellId

Definition at line 20 of file fvstg.cpp.

20 {
21 return p->m_stgToCellId[*(*this)];
22}

◆ getNghbr()

template<class base_iterator , class SolverType >
nDim_iterator_t< base_iterator, SolverType >::value_type nDim_iterator_t< base_iterator, SolverType >::getNghbr ( MInt  dir) const

Definition at line 13 of file fvstg.cpp.

13 {
14 return p->m_solver->a_reconstructionNeighborId(p->m_stgToCellId[*(*this)], dir);
15}

◆ getStgId()

template<class base_iterator , class SolverType >
value_type nDim_iterator_t< base_iterator, SolverType >::getStgId ( ) const
inline

Definition at line 74 of file fvstg.h.

74{ return *(*this); }

Member Data Documentation

◆ p

template<class base_iterator , class SolverType >
const AccessorUnstructured<SolverType>* nDim_iterator_t< base_iterator, SolverType >::p {}
private

Definition at line 79 of file fvstg.h.


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