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

CellFactoryBase.h

Go to the documentation of this file.
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   /** \ingroup LowLevelGeometry
00020    * base class for cell factories
00021    */
00022 
00023   class CellFactoryBase
00024     {
00025     public:
00026       /** construct with a given list of nodes */
00027       CellFactoryBase(const TSFArray<int>& nodes) : nodes_(nodes) {;}
00028       /** dtor */
00029       virtual ~CellFactoryBase(){;}
00030 
00031       /** return list of nodes defining the new cell */
00032       const TSFArray<int>& nodes() const {return nodes_;}
00033       /** return the reference cell that the new cell will use  */
00034       virtual ReferenceCell& refCell() const = 0 ;
00035 
00036     protected:
00037       TSFArray<int> nodes_;
00038     };
00039 
00040 
00041 
00042 }
00043 #endif
00044 
00045 

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


Documentation generated by