00001 #ifndef SINGLECELLSET_H
00002 #define SINGLECELLSET_H
00003
00004 #include "SundanceDefs.h"
00005 #include "CellSetBase.h"
00006
00007
00008
00009
00010 namespace Sundance
00011 {
00012
00013 using namespace TSF;
00014 using std::string;
00015
00016 using std::ostream;
00017
00018
00019
00020
00021
00022
00023 class SingleCellSet : public CellSetBase
00024 {
00025 public:
00026
00027 SingleCellSet(Cell& newCell);
00028
00029 virtual ~SingleCellSet(){;}
00030
00031
00032 virtual bool contains(const Cell& cell) const;
00033
00034
00035 virtual XMLObject toXML() const ;
00036
00037
00038
00039 virtual int dimension(const Mesh& mesh) const ;
00040
00041
00042 virtual bool equals(const CellSet& other) const ;
00043
00044
00045 virtual bool lessThan(const CellSet& other) const ;
00046 private:
00047
00048 Cell& cell_;
00049 };
00050
00051
00052
00053 }
00054 #endif