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

NullCellSet.h

Go to the documentation of this file.
00001 #ifndef NULLCELLSET_H
00002 #define NULLCELLSET_H
00003 
00004 #include "SundanceDefs.h"
00005 #include "CellSetBase.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    * Base class for cell sets. CellSetBase objects are always used wrapped
00018    * in a CellSet handle class.
00019    */
00020 
00021   class NullCellSet : public CellSetBase
00022     {
00023     public:
00024       /** empty ctor */
00025       NullCellSet();
00026       /** TUVD */
00027       virtual ~NullCellSet(){;}
00028 
00029       /** determine if a given cell is contained in this set */
00030       virtual bool contains(const Cell& /* cell */) const {return false;}
00031 
00032       /** write as XML */
00033       virtual XMLObject toXML() const ;
00034 
00035       /** find the cell dimensions that should be searched to find cells
00036        * in this set */
00037       virtual int dimension(const Mesh& mesh) const ;
00038 
00039       /** test equality */
00040       virtual bool equals(const CellSet& /* other */) const {return true;}
00041 
00042       /** test ordering */
00043       virtual bool lessThan(const CellSet& /* other */) const {return false;}
00044     protected:
00045     };
00046 
00047 
00048 
00049 }
00050 #endif

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


Documentation generated by