LCOV - code coverage report
Current view: top level - src/mesquite/Control - IQInterface.hpp (source / functions) Hit Total Coverage
Test: coverage_sk.info Lines: 8 8 100.0 %
Date: 2020-07-18 00:09:26 Functions: 3 3 100.0 %
Branches: 2 4 50.0 %

           Branch data     Line data    Source code
       1                 :            : /* *****************************************************************
       2                 :            :     MESQUITE -- The Mesh Quality Improvement Toolkit
       3                 :            : 
       4                 :            :     Copyright 2009 Sandia National Laboratories.  Developed at the
       5                 :            :     University of Wisconsin--Madison under SNL contract number
       6                 :            :     624796.  The U.S. Government and the University of Wisconsin
       7                 :            :     retain certain rights to this software.
       8                 :            : 
       9                 :            :     This library is free software; you can redistribute it and/or
      10                 :            :     modify it under the terms of the GNU Lesser General Public
      11                 :            :     License as published by the Free Software Foundation; either
      12                 :            :     version 2.1 of the License, or (at your option) any later version.
      13                 :            : 
      14                 :            :     This library is distributed in the hope that it will be useful,
      15                 :            :     but WITHOUT ANY WARRANTY; without even the implied warranty of
      16                 :            :     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      17                 :            :     Lesser General Public License for more details.
      18                 :            : 
      19                 :            :     You should have received a copy of the GNU Lesser General Public License
      20                 :            :     (lgpl.txt) along with this library; if not, write to the Free Software
      21                 :            :     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
      22                 :            : 
      23                 :            :     (2009) [email protected]
      24                 :            : 
      25                 :            :   ***************************************************************** */
      26                 :            : 
      27                 :            : /** \file IQInterface.hpp
      28                 :            :  *  \brief Interface for InstructionQueue and similar classes
      29                 :            :  *  \author Jason Kraftcheck
      30                 :            :  */
      31                 :            : 
      32                 :            : #ifndef MSQ_IQINTERFACE_HPP
      33                 :            : #define MSQ_IQINTERFACE_HPP
      34                 :            : 
      35                 :            : #include "Mesquite.hpp"
      36                 :            : #include "Settings.hpp"
      37                 :            : #include "MeshInterface.hpp"
      38                 :            : 
      39                 :            : namespace MBMesquite
      40                 :            : {
      41                 :            : 
      42                 :            : class MsqError;
      43                 :            : class ParallelMesh;
      44                 :            : 
      45                 :        330 : class MESQUITE_EXPORT IQInterface : public Settings
      46                 :            : {
      47                 :            :   public:
      48                 :            :     virtual ~IQInterface();
      49                 :            : 
      50                 :         97 :     inline void run_instructions( MeshDomainAssoc* mesh_and_domain, MsqError& err )
      51                 :            :     {
      52                 :         97 :         this->run_common( mesh_and_domain, 0, this, err );
      53                 :         97 :     }
      54                 :            : 
      55                 :         35 :     inline void run_instructions( Mesh* mesh, MsqError& err )
      56                 :            :     {
      57         [ +  - ]:         35 :         MeshDomainAssoc mesh_and_domain = MeshDomainAssoc( mesh, 0 );
      58         [ +  - ]:         35 :         this->run_common( &mesh_and_domain, 0, this, err );
      59                 :         35 :     }
      60                 :            : 
      61                 :            :     inline void run_instructions( ParallelMesh* mesh, MeshDomain* domain, MsqError& err )
      62                 :            :     {
      63                 :            :         MeshDomainAssoc mesh_and_domain = MeshDomainAssoc( (Mesh*)mesh, domain );
      64                 :            :         this->run_common( &mesh_and_domain, mesh, this, err );
      65                 :            :     }
      66                 :            : 
      67                 :            :     inline void run_instructions( ParallelMesh* mesh, MsqError& err )
      68                 :            :     {
      69                 :            :         MeshDomainAssoc mesh_and_domain = MeshDomainAssoc( (Mesh*)mesh, 0 );
      70                 :            :         this->run_common( &mesh_and_domain, mesh, this, err );
      71                 :            :     }
      72                 :            : 
      73                 :            :   protected:
      74                 :            :     virtual void run_common( MeshDomainAssoc* mesh_and_domain, ParallelMesh* pmesh, Settings* settings,
      75                 :            :                              MsqError& err ) = 0;
      76                 :            : };
      77                 :            : 
      78                 :            : }  // namespace MBMesquite
      79                 :            : 
      80                 :            : #endif

Generated by: LCOV version 1.11