MOAB: Mesh Oriented datABase  (version 5.4.1)
LInfTemplate.hpp
Go to the documentation of this file.
00001 /* *****************************************************************
00002     MESQUITE -- The Mesh Quality Improvement Toolkit
00003 
00004     Copyright 2004 Sandia Corporation and Argonne National
00005     Laboratory.  Under the terms of Contract DE-AC04-94AL85000
00006     with Sandia Corporation, the U.S. Government retains certain
00007     rights in this software.
00008 
00009     This library is free software; you can redistribute it and/or
00010     modify it under the terms of the GNU Lesser General Public
00011     License as published by the Free Software Foundation; either
00012     version 2.1 of the License, or (at your option) any later version.
00013 
00014     This library is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017     Lesser General Public License for more details.
00018 
00019     You should have received a copy of the GNU Lesser General Public License
00020     (lgpl.txt) along with this library; if not, write to the Free Software
00021     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 
00023     [email protected], [email protected], [email protected],
00024     [email protected], [email protected], [email protected]
00025 
00026   ***************************************************************** */
00027 // -*- Mode : c++; tab-width: 3; c-tab-always-indent: t; indent-tabs-mode: nil; c-basic-offset: 3
00028 // -*-
00029 
00030 /*! \file LInfTemplate.hpp
00031 
00032 Header file for the MBMesquite::LInfTemplate class
00033 
00034   \author Michael Brewer
00035   \date   2002-07-3
00036  */
00037 
00038 #ifndef LInfTemplate_hpp
00039 #define LInfTemplate_hpp
00040 
00041 #include "Mesquite.hpp"
00042 #include "ObjectiveFunctionTemplate.hpp"
00043 
00044 namespace MBMesquite
00045 {
00046 /*! \class LInfTemplate
00047   \brief Computes the L_infinity objective function for a given patch,
00048   i.e., LInfTemplate::concrete_evaluate returns the maximum absolute value of
00049   the quality metric values  on 'patch'.
00050 */
00051 class LInfTemplate : public ObjectiveFunctionTemplate
00052 {
00053   public:
00054     MESQUITE_EXPORT LInfTemplate( QualityMetric* );
00055     MESQUITE_EXPORT virtual ~LInfTemplate();
00056     MESQUITE_EXPORT virtual bool evaluate( EvalType type, PatchData& pd, double& value_out, bool free, MsqError& err );
00057     MESQUITE_EXPORT virtual ObjectiveFunction* clone() const;
00058     MESQUITE_EXPORT virtual void clear();
00059 
00060   private:
00061     /** Temporary storage for qm sample handles */
00062     mutable std::vector< size_t > qmHandles;
00063 };
00064 }  // namespace MBMesquite
00065 #endif  // LInfTemplate_hpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines