00001 #ifndef CELLFACTORY_H
00002 #define CELLFACTORY_H
00003
00004 #include "SundanceDefs.h"
00005
00006 #include "TSFSmartPtr.h"
00007 #include "CellFactoryBase.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
00024
00025
00026 class CellFactory
00027 {
00028 public:
00029
00030 CellFactory() : ptr_(0){;}
00031
00032 CellFactory(CellFactoryBase* ptr);
00033
00034
00035 const TSFArray<int>& nodes() const {return ptr_->nodes();}
00036
00037 ReferenceCell& refCell() const {return ptr_->refCell();}
00038
00039 protected:
00040 TSFSmartPtr<CellFactoryBase> ptr_;
00041 };
00042
00043
00044
00045 }
00046 #endif
00047
00048
00049
00050
00051
00052