Chombo + EB + MF  3.2
EBAlias.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, BVS
12 
13 #ifndef _EBALIAS_H_
14 #define _EBALIAS_H_
15 
16 #include "EBCellFAB.H"
17 #include "LevelData.H"
18 #include "FArrayBox.H"
19 #include "NamespaceHeader.H"
20 
21 class EBAliasDataFactory : public DataFactory<FArrayBox>
22 {
23 public:
25  {
26  }
27 
28  void define(LevelData<EBCellFAB>& aliases);
29 
30  /// factory function. creates a new 'T' object using an aliased dataPtr for T
31  /** creates a new 'T' object and returns a pointer to it. Responsiblitly
32  for calling operator 'delete' on this pointer is passed to the user. */
33  virtual FArrayBox* create(const Box& box, int ncomps, const DataIndex& a_datInd) const;
34 
35 protected:
37 };
38 
39 void aliasEB(LevelData<FArrayBox>& a_output, LevelData<EBCellFAB>& a_input);
40 
41 #include "NamespaceFooter.H"
42 #endif
Definition: EBAlias.H:21
void define(LevelData< EBCellFAB > &aliases)
Data that maintains a one-to-one mapping of T to the boxes in a BoxLayout.
Definition: BoxLayout.H:26
virtual ~EBAliasDataFactory()
Definition: EBAlias.H:24
Definition: EBInterface.H:45
LayoutData< Real * > aliasPtrs
Definition: EBAlias.H:36
void aliasEB(LevelData< FArrayBox > &a_output, LevelData< EBCellFAB > &a_input)
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
Definition: DataIndex.H:114
Definition: FArrayBox.H:45
Factory object to data members of a BoxLayoutData container.
Definition: BoxLayoutData.H:30
virtual FArrayBox * create(const Box &box, int ncomps, const DataIndex &a_datInd) const
factory function. creates a new &#39;T&#39; object using an aliased dataPtr for T