LCOV - code coverage report
Current view: top level - extern - register_extern.cpp (source / functions) Hit Total Coverage
Test: coverage_sk.info Lines: 7 7 100.0 %
Date: 2020-07-01 15:24:36 Functions: 3 3 100.0 %
Branches: 2 4 50.0 %

           Branch data     Line data    Source code
       1                 :            : #include "meshkit/RegisterMeshOp.hpp"
       2                 :            : #ifdef HAVE_CAMAL_TRIADV
       3                 :            : #  include "meshkit/CAMALTriAdvance.hpp"
       4                 :            : #endif
       5                 :            : #ifdef HAVE_CAMAL_TET
       6                 :            : #  include "meshkit/CAMALTetMesher.hpp"
       7                 :            : #endif
       8                 :            : #ifdef HAVE_CAMAL_PAVER
       9                 :            : #  include "meshkit/CAMALPaver.hpp"
      10                 :            : #endif
      11                 :            : #ifdef HAVE_NETGEN
      12                 :            : #  include "meshkit/NGTetMesher.hpp"
      13                 :            : #endif
      14                 :            : #ifdef HAVE_MESQUITE
      15                 :            : #  include "meshkit/MesquiteOpt.hpp"
      16                 :            : #endif
      17                 :            : #ifdef HAVE_TRIANGLE
      18                 :            : #  include "meshkit/TriangleMesher.hpp"
      19                 :            : #endif
      20                 :            : #ifdef HAVE_TETGEN
      21                 :            : #  include "meshkit/TGTetMesher.hpp"
      22                 :            : #endif
      23                 :            : 
      24                 :            : 
      25                 :            : namespace MeshKit {
      26                 :            : 
      27                 :            : /**\brief Dummy function to force load from static library */
      28                 :         78 : extern int register_extern_mesh_ops() { return 1; }
      29                 :            : 
      30                 :            : /**\brief Register a MeshOp type during initialization
      31                 :            :  *\param NAME Class name for MeshOp subclass
      32                 :            :  */
      33                 :            : #define REGISTER_MESH_OP(NAME) \
      34                 :            :   RegisterMeshOp<NAME> NAME ## _GLOBAL_PROXY
      35                 :            : 
      36                 :            : #ifdef HAVE_CAMAL
      37                 :            : 
      38                 :            : #ifdef HAVE_CAMAL_TRIADV
      39                 :         39 :   REGISTER_MESH_OP(CAMALTriAdvance);
      40                 :            : #endif
      41                 :            : #ifdef HAVE_CAMAL_PAVER
      42                 :         39 :   REGISTER_MESH_OP(CAMALPaver);
      43                 :            : #endif
      44                 :            : #ifdef HAVE_CAMAL_TET
      45                 :         39 :   REGISTER_MESH_OP(CAMALTetMesher);
      46                 :            : #endif
      47                 :            : 
      48                 :            : #endif
      49                 :            : 
      50                 :            : #ifdef HAVE_TRIANGLE
      51                 :            :   REGISTER_MESH_OP(TriangleMesher);
      52                 :            : #endif
      53                 :            : 
      54                 :            : #ifdef HAVE_NETGEN
      55                 :         39 :   REGISTER_MESH_OP(NGTetMesher);
      56                 :            : #endif    
      57                 :            : 
      58                 :            : #ifdef HAVE_TETGEN
      59                 :            :   REGISTER_MESH_OP(TGTetMesher);
      60                 :            : #endif
      61                 :            : 
      62                 :            : #ifdef HAVE_MESQUITE
      63                 :         39 :   REGISTER_MESH_OP(MesquiteOpt);
      64                 :            : #endif 
      65                 :            : 
      66 [ +  - ][ +  - ]:        156 : } // namespace MeshKit
      67                 :            : 

Generated by: LCOV version 1.11