LCOV - code coverage report
Current view: top level - src - PolyElementSeq.cpp (source / functions) Hit Total Coverage
Test: coverage_sk.info Lines: 5 13 38.5 %
Date: 2020-12-16 07:07:30 Functions: 2 4 50.0 %
Branches: 1 4 25.0 %

           Branch data     Line data    Source code
       1                 :            : #include "PolyElementSeq.hpp"
       2                 :            : 
       3                 :            : namespace moab
       4                 :            : {
       5                 :            : 
       6         [ -  + ]:        112 : PolyElementSeq::~PolyElementSeq() {}
       7                 :            : 
       8                 :          0 : EntitySequence* PolyElementSeq::split( EntityHandle here )
       9                 :            : {
      10         [ #  # ]:          0 :     return new PolyElementSeq( *this, here );
      11                 :            : }
      12                 :            : 
      13                 :          0 : ErrorCode PolyElementSeq::get_connectivity( EntityHandle handle, std::vector< EntityHandle >& connect, bool ) const
      14                 :            : {
      15                 :          0 :     EntityHandle const* conn = get_array() + nodes_per_element() * ( handle - start_handle() );
      16                 :          0 :     int len                  = nodes_per_element();
      17                 :          0 :     connect.reserve( connect.size() + len );
      18                 :          0 :     std::copy( conn, conn + len, std::back_inserter( connect ) );
      19                 :          0 :     return MB_SUCCESS;
      20                 :            : }
      21                 :            : 
      22                 :      23577 : ErrorCode PolyElementSeq::get_connectivity( EntityHandle handle, EntityHandle const*& conn_ptr, int& len, bool,
      23                 :            :                                             std::vector< EntityHandle >* ) const
      24                 :            : {
      25                 :      23577 :     conn_ptr = get_array() + nodes_per_element() * ( handle - start_handle() );
      26                 :      23577 :     len      = nodes_per_element();
      27                 :      23577 :     return MB_SUCCESS;
      28                 :            : }
      29                 :            : 
      30                 :            : }  // namespace moab

Generated by: LCOV version 1.11