LCOV - code coverage report
Current view: top level - geom/virtual - TDVGFacetOwner.cpp (source / functions) Hit Total Coverage
Test: coverage_sk.info Lines: 0 13 0.0 %
Date: 2020-06-30 00:58:45 Functions: 0 3 0.0 %
Branches: 0 12 0.0 %

           Branch data     Line data    Source code
       1                 :            : #include "TDVGFacetOwner.hpp"
       2                 :            : #include "ToolDataUser.hpp"
       3                 :            : 
       4                 :          0 : PartitionEntity* TDVGFacetOwner::get( ToolDataUser* user )
       5                 :            : {
       6                 :          0 :   ToolData* td = user->get_TD( &is_vg_facet_owner );
       7 [ #  # ][ #  # ]:          0 :   return td ? dynamic_cast<TDVGFacetOwner*>(td)->owner() : 0;
       8                 :            : }
       9                 :            : 
      10                 :          0 : void TDVGFacetOwner::set( ToolDataUser* user, PartitionEntity* owner )
      11                 :            : {
      12                 :          0 :   ToolData* td = user->get_TD( &is_vg_facet_owner );
      13         [ #  # ]:          0 :   if( td )
      14                 :            :   {
      15         [ #  # ]:          0 :     dynamic_cast<TDVGFacetOwner*>(td)->mOwner = owner;
      16                 :            :   }
      17                 :            :   else
      18                 :            :   {
      19         [ #  # ]:          0 :     td = new TDVGFacetOwner( owner );
      20                 :          0 :     user->add_TD( td );
      21                 :            :   }
      22                 :          0 : }
      23                 :            : 
      24                 :          0 : void TDVGFacetOwner::remove( ToolDataUser* user )
      25                 :            : {
      26         [ #  # ]:          0 :   delete user->remove_TD( &is_vg_facet_owner );
      27                 :          0 : }
      28                 :            : 
      29                 :            :   

Generated by: LCOV version 1.11