00001 #ifndef CELLFACTORYBASE_H
00002 #define CELLFACTORYBASE_H
00003
00004 #include "SundanceDefs.h"
00005
00006 #include "ReferenceCell.h"
00007 #include "TSFArray.h"
00008
00009
00010
00011 namespace Sundance
00012 {
00013
00014 using namespace TSF;
00015 using std::string;
00016
00017 using std::ostream;
00018
00019
00020
00021
00022
00023 class CellFactoryBase
00024 {
00025 public:
00026
00027 CellFactoryBase(const TSFArray<int>& nodes) : nodes_(nodes) {;}
00028
00029 virtual ~CellFactoryBase(){;}
00030
00031
00032 const TSFArray<int>& nodes() const {return nodes_;}
00033
00034 virtual ReferenceCell& refCell() const = 0 ;
00035
00036 protected:
00037 TSFArray<int> nodes_;
00038 };
00039
00040
00041
00042 }
00043 #endif
00044
00045