vtf-logo

shells/fem/selementNeighbors.h

Go to the documentation of this file.
00001 // -*- C++ -*- 
00002 //
00003 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00004 //
00005 //                                   Fehmi Cirak
00006 //                        California Institute of Technology
00007 //                           (C) 2004 All Rights Reserved
00008 //
00009 // <LicenseText>
00010 //
00011 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00012 //
00013 #ifndef SELEMENTNEIGHBORS_H
00014 #define SELEMENTNEIGHBORS_H
00015 #include <functional>
00016 #include <set>
00017 #include <vector>
00018 
00019 #include "sedgeCompare.h"
00020 
00021 
00022 namespace shells {
00023     class SElementNeighbors;
00024     struct SElementS;
00025     struct SVertexS;
00026     struct SEdgeS;
00027 }
00028 
00029 
00030 
00031 class shells::SElementNeighbors : public std::unary_function<shells::SElementS *, void> {
00032 public:
00033 
00034     typedef std::set<shells::SEdgeS *, shells::SEdgeCompare> SEdgeSetCont;
00035     typedef SEdgeSetCont::iterator SEdgeSetContIt;
00036 
00037     SElementNeighbors(SEdgeSetCont& edgeSet):_edgeSet(edgeSet){}; 
00038     ~SElementNeighbors(){};
00039     
00040     void operator()(shells::SElementS *element);    
00041 
00042 private:
00043     SEdgeSetCont&   _edgeSet;
00044     
00045     void addOrMatch(shells::SVertexS *a, shells::SVertexS * b, shells::SElementS *tn);
00046 };
00047 
00048 #endif

Generated on Fri Aug 24 13:00:24 2007 for SFC Thin-Shell Finite Element Solver by  doxygen 1.4.7