Chombo + EB + MF  3.2
MBVectorStencil.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 _MBVECTORSTENCIL_H_
12 #define _MBVECTORSTENCIL_H_
13 
14 #include "MBVectorStencilElement.H"
15 #include "RefCountedPtr.H"
16 
17 #include "NamespaceHeader.H"
18 
19 // ---------------------------------------------------------
20 /// Class to describe a multi-block interpolation stencil.
22 {
23 public:
24 
25  /// null constructor leaves object in undefined state.
27 
28  ///
29  /**
30  Constructor.
31  */
33 
34  /// destructor
35  virtual ~MBVectorStencil();
36 
37  ///
38  /*
39  Same as constructor.
40  */
42 
43  const MBVectorStencilElement& 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
const MBVectorStencilElement & operator[](int a_ind) const
Definition: MBVectorStencil.H:43
MBVectorStencilElement & operator[](int a_ind)
Definition: MBVectorStencil.H:46
A reference-counting handle class.
Definition: RefCountedPtr.H:173
virtual void define(RefCountedPtr< Vector< MBVectorStencilElement > > a_vec)
Class to describe a single element of a multi-block interpolation stencil.
Definition: MBVectorStencilElement.H:21
Class to describe a multi-block interpolation stencil.
Definition: MBVectorStencil.H:21
MBVectorStencil()
null constructor leaves object in undefined state.
int size() const
RefCountedPtr< Vector< MBVectorStencilElement > > m_vec
stencil elements
Definition: MBVectorStencil.H:54
virtual ~MBVectorStencil()
destructor