Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

CellFactory.h

Go to the documentation of this file.
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   /** \ingroup MeshBuilding
00020    * CellFactory is a builder class for Cells, used in the createCell() methods
00021    * of Mesh. It is responsible for giving each cell a set of nodes
00022    * and a ReferenceCell.
00023    */
00024 
00025 
00026   class CellFactory
00027     {
00028     public:
00029       /** empty ctor */
00030       CellFactory() : ptr_(0){;}
00031       /** construct by assuming control of a CellFactoryBase subtype ptr */
00032       CellFactory(CellFactoryBase* ptr);
00033 
00034       /** get the list of node numbers for the new cell */
00035       const TSFArray<int>& nodes() const {return ptr_->nodes();}
00036       /** get the ReferenceCell for the new cell */
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 

Contact:
Kevin Long (krlong@ca.sandia.gov)


Documentation generated by