boundaryindexhandler.h

Go to the documentation of this file.
00001 #ifndef __boundaryindexhandler_h
00002 #define __boundaryindexhandler_h
00003 
00004 #include <map>
00005 #include <set>
00006 #include  "gascoigne.h"
00007 
00008 /*--------------------------------------------------------------*/
00009 
00010 namespace Gascoigne
00011 {
00012 class BoundaryIndexHandler
00013 {
00014  protected:
00015 
00016   typedef std::map<int,IntVector> VecMap;
00017 
00018   IntSet  AllColors;
00019   VecMap  verteces, cells, localci;
00020 
00021  public:
00022 
00023   void CopySetToVector(const std::vector<IntSet>&,
00024                        const IntVector&, VecMap&) const;
00025 
00026   void clear();
00027 
00028   const IntSet& GetColors() const {return AllColors;}
00029   const VecMap& GetVertex() const {return verteces;}
00030   const VecMap& GetCell()   const {return cells;}
00031   const VecMap& GetLocal() const  {return localci;}
00032 
00033   IntSet& GetColors()  {return AllColors;}
00034   VecMap& GetVertex()  {return verteces;}
00035   VecMap& GetCell()    {return cells;}
00036   VecMap& GetLocal()   {return localci;}
00037 
00038   const IntVector& Verteces(int col) const;
00039   const IntVector& Cells   (int col) const;
00040   const IntVector& Localind(int col) const;
00041 
00042   void Equal(const IntSet& col, const VecMap& v, const VecMap& c, const VecMap& l);
00043   void check() const;
00044   friend std::ostream& operator<<(std::ostream &s, const BoundaryIndexHandler& A);
00045 };
00046 }
00047 
00048 /*--------------------------------------------------------------*/
00049 
00050 #endif

Generated on Thu Sep 14 10:34:37 2006 for Gascoigne by  doxygen 1.4.7