Chombo + EB + MF  3.2
EBDataFactory.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, DTG
12 
13 #ifndef _EBDATAFACTORY_H_
14 #define _EBDATAFACTORY_H_
15 
16 #include "Box.H"
17 #include "LevelData.H"
18 #include "EBData.H"
19 #include "EBGraph.H"
20 #include "NamespaceHeader.H"
21 
22 /// Factory class to produce EBData(es)
23 /**
24  This is needed for LevelData construction.
25  */
27  : public DataFactory<EBData>
28 {
29 public:
30  ///
31  /**
32  Creates an undefined EBData.
33  */
34  virtual EBData* create(const Box & a_box,
35  int a_ncomps,
36  const DataIndex& a_datInd) const;
37 
38  ///
39  /**
40  */
42  {
43  }
44 
45  ///
46  /**
47  */
48  virtual ~EBDataFactory()
49  {
50  }
51 
52  ///return true if copy and construction are thread safe--NOT TRUE HERE
53  virtual bool threadSafe() const
54  {
55  return false;
56  }
57 private:
58 
59 };
60 #include "NamespaceFooter.H"
61 #endif
Factory class to produce EBData(es)
Definition: EBDataFactory.H:26
virtual ~EBDataFactory()
Definition: EBDataFactory.H:48
virtual bool threadSafe() const
return true if copy and construction are thread safeā€“NOT TRUE HERE
Definition: EBDataFactory.H:53
virtual EBData * create(const Box &a_box, int a_ncomps, const DataIndex &a_datInd) const
Definition: EBData.H:322
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
Definition: DataIndex.H:114
Factory object to data members of a BoxLayoutData container.
Definition: BoxLayoutData.H:30
EBDataFactory()
Definition: EBDataFactory.H:41