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

DimensionalCellSet.h

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

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


Documentation generated by