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

SingleCellSet.h

Go to the documentation of this file.
00001 #ifndef SINGLECELLSET_H
00002 #define SINGLECELLSET_H
00003 
00004 #include "SundanceDefs.h"
00005 #include "CellSetBase.h"
00006 
00007 /**
00008  * A SingleCellSet is a CellSet which contains only one Cell
00009  */
00010 namespace Sundance
00011 {
00012 
00013   using namespace TSF;
00014   using std::string;
00015 
00016   using std::ostream;
00017 
00018   /** \ingroup LowLevelGeometry
00019    * Base class for cell sets. CellSetBase objects are always used wrapped
00020    * in a CellSet handle class.
00021    */
00022 
00023   class SingleCellSet : public CellSetBase
00024     {
00025     public:
00026       /** empty ctor */
00027       SingleCellSet(Cell& newCell);
00028       /** TUVD */
00029       virtual ~SingleCellSet(){;}
00030 
00031       /** determine if a given cell is contained in this set */
00032       virtual bool contains(const Cell& cell) const;
00033 
00034       /** write as XML */
00035       virtual XMLObject toXML() const ;
00036 
00037       /** find the cell dimensions that should be searched to find cells
00038        * in this set */
00039       virtual int dimension(const Mesh& mesh) const ;
00040 
00041       /** test equality */
00042       virtual bool equals(const CellSet& other) const ;
00043 
00044       /** test ordering */
00045       virtual bool lessThan(const CellSet& other) const ;
00046     private:
00047 
00048       Cell& cell_;
00049     };
00050 
00051 
00052 
00053 }
00054 #endif

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


Documentation generated by