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: FunctionExpressionComposed.hpp,v 1.1 2006/07/20 17:29:18 delpinux Exp $ 00019 00020 #ifndef FUNCTION_EXPRESSION_COMPOSED_HPP 00021 #define FUNCTION_EXPRESSION_COMPOSED_HPP 00022 00023 #include <FunctionExpression.hpp> 00024 00034 class FunctionExpressionComposed 00035 : public FunctionExpression 00036 { 00037 private: 00038 ReferenceCounting<FunctionExpression> __function; 00040 ReferenceCounting<FunctionExpression> __functionExpressionX; 00041 ReferenceCounting<FunctionExpression> __functionExpressionY; 00042 ReferenceCounting<FunctionExpression> __functionExpressionZ; 00044 public: 00050 bool hasBoundaryExpression() const 00051 { 00052 return (__function->hasBoundaryExpression() or 00053 __functionExpressionX->hasBoundaryExpression() or 00054 __functionExpressionY->hasBoundaryExpression() or 00055 __functionExpressionZ->hasBoundaryExpression()); 00056 } 00057 00062 void execute(); 00063 00073 FunctionExpressionComposed(ReferenceCounting<FunctionExpression> f, 00074 ReferenceCounting<FunctionExpression> X, 00075 ReferenceCounting<FunctionExpression> Y, 00076 ReferenceCounting<FunctionExpression> Z); 00077 00084 FunctionExpressionComposed(const FunctionExpressionComposed& f); 00085 00090 ~FunctionExpressionComposed(); 00091 }; 00092 00093 #endif // FUNCTION_EXPRESSION_COMPOSED_HPP
1.5.6