Quinoa all test code coverage report
Current view: top level - IO - ASCMeshReader.hpp (source / functions) Hit Total Coverage
Commit: -128-NOTFOUND Lines: 3 3 100.0 %
Date: 2024-04-29 14:42:33 Functions: 0 0 -
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 2 4 50.0 %

           Branch data     Line data    Source code
       1                 :            : // *****************************************************************************
       2                 :            : /*!
       3                 :            :   \file      src/IO/ASCMeshReader.hpp
       4                 :            :   \copyright 2012-2015 J. Bakosi,
       5                 :            :              2016-2018 Los Alamos National Security, LLC.,
       6                 :            :              2019-2021 Triad National Security, LLC.
       7                 :            :              All rights reserved. See the LICENSE file for details.
       8                 :            :   \brief     ASC mesh reader class declaration
       9                 :            :   \details   ASC mesh reader class declaration. Mesh reader facilitating reading
      10                 :            :              a mesh from a simple text file used by Jacob Waltz's Chicoma code.
      11                 :            : */
      12                 :            : // *****************************************************************************
      13                 :            : #ifndef ASCMeshReader_h
      14                 :            : #define ASCMeshReader_h
      15                 :            : 
      16                 :            : #include <iosfwd>
      17                 :            : 
      18                 :            : #include "Reader.hpp"
      19                 :            : 
      20                 :            : namespace tk {
      21                 :            : 
      22                 :            : class UnsMesh;
      23                 :            : 
      24                 :            : //! \brief ASCMeshReader : tk::Reader
      25                 :            : //! \details Mesh reader class facilitating reading a mesh from a simple test
      26                 :            : //!   file used by Jacob Waltz's Chicoma code.
      27                 :          4 : class ASCMeshReader : public Reader {
      28                 :            : 
      29                 :            :   public:
      30                 :            :     //! Constructor
      31                 :          4 :     explicit ASCMeshReader( const std::string& filename ) :
      32 [ +  - ][ +  - ]:          4 :       Reader( filename ) {}
      33                 :            : 
      34                 :            :     //! Read ASC mesh
      35                 :            :     void readMesh( UnsMesh& mesh );
      36                 :            : 
      37                 :            :   private:
      38                 :            :     //! Read header
      39                 :            :     void readHeader();
      40                 :            : 
      41                 :            :     //! Read nodes
      42                 :            :     void readNodes( UnsMesh& mesh );
      43                 :            : 
      44                 :            :     //! Read element connectivity
      45                 :            :     void readElements( UnsMesh& mesh );
      46                 :            : };
      47                 :            : 
      48                 :            : } // tk::
      49                 :            : 
      50                 :            : #endif // ASCMeshReader_h

Generated by: LCOV version 1.14