Chombo + EB + MF  3.2
MBStencil.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 #ifndef _MBSTENCIL_H_
12 #define _MBSTENCIL_H_
13 
14 #include "MBStencilElement.H"
15 #include "RefCountedPtr.H"
16 
17 #include "NamespaceHeader.H"
18 
19 // ---------------------------------------------------------
20 /// Class to describe a multi-block interpolation stencil.
21 class MBStencil
22 {
23 public:
24 
25  /// null constructor leaves object in undefined state.
26  MBStencil();
27 
28  ///
29  /**
30  Constructor.
31  */
33 
34  /// destructor
35  virtual ~MBStencil();
36 
37  ///
38  /*
39  Same as constructor.
40  */
41  virtual void define(RefCountedPtr< Vector<MBStencilElement> > a_vec);
42 
43  const MBStencilElement& operator[](int a_ind) const
44  { return (*m_vec)[a_ind]; }
45 
47  { return (*m_vec)[a_ind]; }
48 
49  int size() const;
50 
51 protected:
52 
53  /// stencil elements
55 };
56 
57 #include "NamespaceFooter.H"
58 
59 #endif // include guard
MBStencil()
null constructor leaves object in undefined state.
virtual ~MBStencil()
destructor
int size() const
A reference-counting handle class.
Definition: RefCountedPtr.H:173
Class to describe a single element of a multi-block interpolation stencil.
Definition: MBStencilElement.H:20
MBStencilElement & operator[](int a_ind)
Definition: MBStencil.H:46
RefCountedPtr< Vector< MBStencilElement > > m_vec
stencil elements
Definition: MBStencil.H:54
virtual void define(RefCountedPtr< Vector< MBStencilElement > > a_vec)
Class to describe a multi-block interpolation stencil.
Definition: MBStencil.H:21
const MBStencilElement & operator[](int a_ind) const
Definition: MBStencil.H:43