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: VariationalDirichletListExpression.hpp,v 1.6 2007/12/19 00:45:45 delpinux Exp $ 00019 00020 #ifndef VARIATIONAL_DIRICHLET_LIST_EXPRESSION_HPP 00021 #define VARIATIONAL_DIRICHLET_LIST_EXPRESSION_HPP 00022 00023 #include <BoundaryConditionExpression.hpp> 00024 class BoundaryConditionExpressionDirichlet; 00025 00026 #include <list> 00027 00036 class VariationalDirichletListExpression 00037 : public Expression 00038 { 00039 private: 00040 typedef 00041 std::list<ReferenceCounting<BoundaryConditionExpressionDirichlet> > 00042 ListType; 00043 00044 ListType __list; 00053 std::ostream& put(std::ostream& os) const; 00054 00055 public: 00061 bool hasPOVBoundary() const; 00062 00068 bool hasPredefinedBoundary() const; 00069 00070 typedef ListType::iterator iterator; 00071 typedef ListType::const_iterator const_iterator; 00072 00079 iterator begin(); 00080 00087 const_iterator begin() const; 00094 const_iterator end() const; 00095 00100 void execute(); 00101 00107 void add(ReferenceCounting<BoundaryConditionExpressionDirichlet> d); 00108 00113 VariationalDirichletListExpression(); 00114 00121 VariationalDirichletListExpression(const VariationalDirichletListExpression& V); 00122 00127 ~VariationalDirichletListExpression(); 00128 }; 00129 00130 #endif // VARIATIONAL_DIRICHLET_LIST_EXPRESSION_HPP 00131
1.5.6