00001 // This file is part of ff3d - http://www.freefem.org/ff3d 00002 // Copyright (C) 2001, 2002, 2003 Stéphane Del Pino 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: BoundaryExpressionReferences.hpp,v 1.2 2007/12/19 00:45:45 delpinux Exp $ 00019 00020 #ifndef BOUNDARY_EXPRESSION_REFERENCES_HPP 00021 #define BOUNDARY_EXPRESSION_REFERENCES_HPP 00022 00023 #include <BoundaryExpression.hpp> 00024 #include <set> 00025 00033 class BoundaryExpressionReferences 00034 : public BoundaryExpression 00035 { 00036 public: 00037 typedef 00038 std::set<ReferenceCounting<RealExpression> > 00039 ReferencesSet; 00040 00041 private: 00042 ReferencesSet __references; 00051 std::ostream& put(std::ostream& os) const; 00052 00053 public: 00059 bool hasPOVBoundary() const 00060 { 00061 return false; 00062 } 00063 00064 00070 bool hasPredefinedBoundary() const 00071 { 00072 return false; 00073 } 00074 00079 void execute(); 00080 00086 void add(ReferenceCounting<RealExpression> reference) 00087 { 00088 __references.insert(reference); 00089 } 00090 00095 BoundaryExpressionReferences(); 00096 00102 BoundaryExpressionReferences(const std::string& borderName); 00103 00109 BoundaryExpressionReferences(const BoundaryExpressionReferences& r); 00110 00115 ~BoundaryExpressionReferences(); 00116 }; 00117 00118 #endif // BOUNDARY_EXPRESSION_REFERENCES_HPP
1.5.6