LCOV - code coverage report
Current view: top level - process/include/mcrl2/process - translate_user_notation.h (source / functions) Hit Total Coverage
Test: mcrl2_coverage.info.cleaned Lines: 7 8 87.5 %
Date: 2024-03-08 02:52:28 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : // Author(s): Wieger Wesselink
       2             : // Copyright: see the accompanying file COPYING or copy at
       3             : // https://github.com/mCRL2org/mCRL2/blob/master/COPYING
       4             : //
       5             : // Distributed under the Boost Software License, Version 1.0.
       6             : // (See accompanying file LICENSE_1_0.txt or copy at
       7             : // http://www.boost.org/LICENSE_1_0.txt)
       8             : //
       9             : /// \file mcrl2/process/translate_user_notation.h
      10             : /// \brief add your file description here.
      11             : 
      12             : #ifndef MCRL2_PROCESS_TRANSLATE_USER_NOTATION_H
      13             : #define MCRL2_PROCESS_TRANSLATE_USER_NOTATION_H
      14             : 
      15             : #include "mcrl2/data/translate_user_notation.h"
      16             : #include "mcrl2/process/builder.h"
      17             : 
      18             : namespace mcrl2
      19             : {
      20             : 
      21             : namespace process
      22             : {
      23             : 
      24             : template <typename T>
      25        1128 : void translate_user_notation(T& x,
      26             :                              typename std::enable_if< !std::is_base_of< atermpp::aterm, T >::value >::type* = nullptr
      27             :                             )
      28             : {
      29        1128 :   core::make_update_apply_builder<process::data_expression_builder>(data::detail::translate_user_notation_function()).update(x);
      30        1128 : }
      31             : 
      32             : template <typename T>
      33          23 : T translate_user_notation(const T& x,
      34             :                           typename std::enable_if< std::is_base_of< atermpp::aterm, T >::value >::type* = nullptr
      35             :                          )
      36             : {
      37          23 :   T result;
      38          23 :   core::make_update_apply_builder<process::data_expression_builder>(data::detail::translate_user_notation_function()).apply(result, x);
      39          23 :   return result;
      40           0 : }
      41             : 
      42             : } // namespace process
      43             : 
      44             : } // namespace mcrl2
      45             : 
      46             : #endif // MCRL2_PROCESS_TRANSLATE_USER_NOTATION_H

Generated by: LCOV version 1.14