00001 #ifdef CH_LANG_CC 00002 /* 00003 * _______ __ 00004 * / ___/ / ___ __ _ / / ___ 00005 * / /__/ _ \/ _ \/ V \/ _ \/ _ \ 00006 * \___/_//_/\___/_/_/_/_.__/\___/ 00007 * Please refer to Copyright.txt, in Chombo's root directory. 00008 */ 00009 #endif 00010 00011 // ANAG, LBNL 00012 00013 #ifndef _BASEEBCELLFACTORYI_H_ 00014 #define _BASEEBCELLFACTORYI_H_ 00015 #include "NamespaceHeader.H" 00016 00017 /***************/ 00018 /***************/ 00019 template <class T> 00020 BaseEBCellFactory<T>::~BaseEBCellFactory() 00021 { 00022 } 00023 /***************/ 00024 /***************/ 00025 template <class T> 00026 BaseEBCellFactory<T>::BaseEBCellFactory(const EBISLayout& a_ebisl) 00027 { 00028 m_ebisl = a_ebisl; 00029 } 00030 /***************/ 00031 /***************/ 00032 template <class T> 00033 BaseEBCellFAB<T>* 00034 BaseEBCellFactory<T>::create(const Box& a_box, int a_ncomps, 00035 const DataIndex& a_dit) const 00036 { 00037 return new BaseEBCellFAB<T>(m_ebisl[a_dit], a_box, a_ncomps); 00038 } 00039 /***************/ 00040 /***************/ 00041 00042 #include "NamespaceFooter.H" 00043 #endif