Chombo + EB  3.2
EBFaceFactory.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 _EBFACEFACTORY_H_
14 #define _EBFACEFACTORY_H_
15 
16 #include <cmath>
17 #include <cstdlib>
18 #include "Vector.H"
19 #include "EBISLayout.H"
20 #include "EBFaceFAB.H"
21 #include "DataIndex.H"
22 #include "NamespaceHeader.H"
23 
24 /// Factory class to produce BaseEBFaceFABs.
25 /**
26  Factory class to produce BaseEBFaceFABs.
27  This is needed for LevelData construction.
28  */
30  : public DataFactory<EBFaceFAB>
31 {
32 public:
33  /// factory function.
34  /**
35  Creates a new baseebcellfab object
36  and returns a pointer to it. Responsiblitly
37  for calling operator 'delete' on this pointer is passed to the user.
38  */
39  virtual EBFaceFAB* create(const Box& a_box, int a_ncomps,
40  const DataIndex& a_dit) const;
41 
42  ///
43  /**
44  create the factory with an ispace. calls full define function
45  */
46  EBFaceFactory(const EBISLayout& a_ebisl,
47  const int& a_idir);
48 
49  ///
50  virtual ~EBFaceFactory();
51 
52 private:
54  int m_idir;
55 
56  //disallowed constructors and all that
57  EBFaceFactory(const EBFaceFactory& a_inputs)
58  {
59  MayDay::Error("disallowed constructor");
60  }
62  {
63  MayDay::Error("disallowed constructor");
64  }
65  void operator=(const EBFaceFactory& a_inputs)
66  {
67  MayDay::Error("disallowed constructor");
68  }
69 };
70 
71 #include "NamespaceFooter.H"
72 #endif
EBISLayout m_ebisl
Definition: EBFaceFactory.H:53
EBFaceFactory(const EBFaceFactory &a_inputs)
Definition: EBFaceFactory.H:57
Definition: EBFaceFAB.H:28
Factory class to produce BaseEBFaceFABs.
Definition: EBFaceFactory.H:29
void operator=(const EBFaceFactory &a_inputs)
Definition: EBFaceFactory.H:65
virtual EBFaceFAB * create(const Box &a_box, int a_ncomps, const DataIndex &a_dit) const
factory function.
int m_idir
Definition: EBFaceFactory.H:54
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.
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
Definition: DataIndex.H:112
virtual ~EBFaceFactory()
Factory object to data members of a BoxLayoutData container.
Definition: BoxLayoutData.H:30
EBFaceFactory()
Definition: EBFaceFactory.H:61
Definition: EBISLayout.H:39