Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

Boundary.h

Go to the documentation of this file.
00001 // Copyright (C) 2003 Johan Hoffman and Anders Logg.
00002 // Licensed under the GNU GPL Version 2.
00003 
00004 #ifndef __BOUNDARY_H
00005 #define __BOUNDARY_H
00006 
00007 #include <dolfin/BoundaryData.h>
00008 
00009 namespace dolfin {
00010 
00011   class Mesh;
00012 
00013   class Boundary {
00014   public:
00015     
00017     Boundary(Mesh& mesh);
00018 
00020     ~Boundary();
00021 
00023     int noNodes() const;
00024 
00026     int noEdges() const;
00027 
00029     int noFaces() const;
00030 
00032     friend class NodeIterator::BoundaryNodeIterator;
00033     friend class EdgeIterator::BoundaryEdgeIterator;
00034     friend class FaceIterator::BoundaryFaceIterator;
00035 
00036   private:
00037 
00038     // Compute boundary (and clear old data)
00039     void init();
00040 
00041     // Clear boundary
00042     void clear();
00043     
00044     // The mesh
00045     Mesh* mesh;
00046 
00047   };
00048 
00049 }
00050 
00051 #endif


Documentation automatically generated with Doxygen on 10 Sep 2004.