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
00017
00018
00019
00020 class DimensionalCellSet : public CellSetBase
00021 {
00022 public:
00023
00024 DimensionalCellSet(int dim) : CellSetBase(), dim_(dim) {;}
00025
00026 virtual ~DimensionalCellSet(){;}
00027
00028
00029 virtual bool contains(const Cell& cell) const ;
00030
00031
00032 virtual XMLObject toXML() const ;
00033
00034
00035
00036 virtual int dimension(const Mesh& mesh) const ;
00037
00038
00039 virtual bool equals(const CellSet& other) const ;
00040
00041
00042 virtual bool lessThan(const CellSet& other) const ;
00043
00044 protected:
00045
00046 int dim_;
00047 };
00048
00049
00050
00051 }
00052 #endif