LCOV - code coverage report
Current view: top level - src/mesquite/Mesh - ExtraData.cpp (source / functions) Hit Total Coverage
Test: coverage_sk.info Lines: 7 8 87.5 %
Date: 2020-07-18 00:09:26 Functions: 4 4 100.0 %
Branches: 6 14 42.9 %

           Branch data     Line data    Source code
       1                 :            : /* *****************************************************************
       2                 :            :     MESQUITE -- The Mesh Quality Improvement Toolkit
       3                 :            : 
       4                 :            :     Copyright 2006 Lawrence Livermore National Laboratory.  Under
       5                 :            :     the terms of Contract B545069 with the University of Wisconsin --
       6                 :            :     Madison, Lawrence Livermore National Laboratory retains certain
       7                 :            :     rights in 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                 :            :     (2006) [email protected]
      24                 :            : 
      25                 :            :   ***************************************************************** */
      26                 :            : 
      27                 :            : /** \file ExtraData.cpp
      28                 :            :  *  \brief
      29                 :            :  *  \author Jason Kraftcheck
      30                 :            :  */
      31                 :            : 
      32                 :            : #include "Mesquite.hpp"
      33                 :            : #include "ExtraData.hpp"
      34                 :            : #include "PatchData.hpp"
      35                 :            : #include <assert.h>
      36                 :            : 
      37                 :            : namespace MBMesquite
      38                 :            : {
      39                 :            : 
      40                 :          2 : ExtraData::ExtraData( PatchData& patch ) : patchNext( 0 ), patchPtr( &patch )
      41                 :            : {
      42         [ -  + ]:          2 :     if( !patch.attach_extra_data( this ) )
      43                 :            :     {
      44                 :          0 :         assert( false );
      45                 :            :         patchPtr = 0;
      46                 :            :     }
      47                 :          2 : }
      48                 :            : 
      49                 :          2 : ExtraData::~ExtraData()
      50                 :            : {
      51 [ -  + ][ #  # ]:          2 :     if( patchPtr && !patchPtr->remove_extra_data( this ) ) assert( false );
                 [ -  + ]
      52         [ -  + ]:          2 : }
      53                 :            : 
      54 [ +  - ][ +  - ]:          4 : }  // namespace MBMesquite

Generated by: LCOV version 1.11