Chombo + EB  3.0
CoveredFaceIterator.H
Go to the documentation of this file.
1 #ifdef CH_LANG_CC
2 /*
3  * _______ __
4  * / ___/ / ___ __ _ / / ___
5  * / /__/ _ \/ _ \/ V \/ _ \/ _ \
6  * \___/_//_/\___/_/_/_/_.__/\___/
7  * Please refer to Copyright.txt, in Chombo's root directory.
8  */
9 #endif
10 
11 // ANAG, LBNL
12 
13 #ifndef _COVEREDFACEITERATOR_H_
14 #define _COVEREDFACEITERATOR_H_
15 
16 #include "IntVect.H"
17 #include "VolIndex.H"
18 #include "IntVectSet.H"
19 #include "EBISBox.H"
20 #include "Vector.H"
21 #include "LoHiSide.H"
22 #include "NamespaceHeader.H"
23 
24 /// Iterator for all vofs within an IntVectSet and an EBISBox
25 /**
26  Iterator for all vofs within an IntVectSet and an EBISBox
27  */
29 {
30 public:
31  ///
32  CoveredFaceIterator(const IntVectSet& a_ivs,
33  const EBISBox& a_ebisBox,
34  int a_dir, Side::LoHiSide a_side);
35 
36  ///
38 
39  ///
41 
42  ///
43  void define(const IntVectSet& a_ivs,
44  const EBISBox& a_ebisBox,
45  int a_dir, Side::LoHiSide a_side);
46 
47  ///
48  void reset();
49 
50  ///
51  void operator++();
52 
53  ///
54  const VolIndex& operator() () const;
55 
56  ///
57  bool ok() const;
58 
59  ///
60  bool isDefined() const;
61 
62 private:
64  {
65  MayDay::Error("Invalid Operator");
66  }
67  void
69  {
70  MayDay::Error("Invalid Operator");
71  }
73  int m_ivol;
74 
76 };
77 
78 #include "NamespaceFooter.H"
79 #endif
An irregular domain on an integer lattice.
Definition: IntVectSet.H:44
bool m_isDefined
Definition: CoveredFaceIterator.H:75
bool isDefined() const
int m_ivol
Definition: CoveredFaceIterator.H:73
Definition: EBISBox.H:46
const VolIndex & operator()() const
Vector< VolIndex > m_vols
Definition: CoveredFaceIterator.H:72
void operator=(const CoveredFaceIterator &a_input)
Definition: CoveredFaceIterator.H:68
CoveredFaceIterator(const CoveredFaceIterator &a_input)
Definition: CoveredFaceIterator.H:63
Iterator for all vofs within an IntVectSet and an EBISBox.
Definition: CoveredFaceIterator.H:28
LoHiSide
Definition: LoHiSide.H:27
static void Error(const char *const a_msg=m_nullString, int m_exitCode=CH_DEFAULT_ERROR_CODE)
Print out message to cerr and exit with the specified exit code.
void define(const IntVectSet &a_ivs, const EBISBox &a_ebisBox, int a_dir, Side::LoHiSide a_side)
Volume of Fluid Index.
Definition: VolIndex.H:31