00001 // This file is part of ff3d - http://www.freefem.org/ff3d 00002 // Copyright (C) 2003 Pascal Havé 00003 // 00004 // This program is free software; you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation; either version 2, or (at your option) 00007 // any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with this program; if not, write to the Free Software Foundation, 00016 // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 // 00018 // $Id: WorkingMesh.hpp,v 1.2 2006/11/02 15:41:25 delpinux Exp $ 00019 00020 #ifndef WORKING_MESH_HPP 00021 #define WORKING_MESH_HPP 00022 00023 #include <ReferenceCounting.hpp> 00024 00025 #include <Vertex.hpp> 00026 #include <Triangle.hpp> 00027 00039 class WorkingMesh 00040 { 00041 private: 00042 typedef std::set<ReferenceCounting<Vertex> > VerticesList; 00043 typedef std::set<ReferenceCounting<Triangle> > ElementsList; 00044 00045 VerticesList __vertices; 00046 ElementsList __elements; 00053 WorkingMesh(const WorkingMesh& wm); 00054 00062 const WorkingMesh& operator=(const WorkingMesh& wo); 00063 00064 public: 00070 void insert(Vertex* v) 00071 { 00072 __vertices.insert(v); 00073 } 00074 00080 void insert(Triangle* t) 00081 { 00082 __elements.insert(t); 00083 } 00084 00089 WorkingMesh() 00090 { 00091 ; 00092 } 00093 00098 ~WorkingMesh() 00099 { 00100 ; 00101 } 00102 }; 00103 00104 #endif // WORKING_MESH_HPP
1.5.6