LCOV - code coverage report
Current view: top level - elsa/storage/transforms - InplaceSub.h (source / functions) Hit Total Coverage
Test: coverage-all.lcov Lines: 6 6 100.0 %
Date: 2024-05-16 04:22:26 Functions: 12 12 100.0 %

          Line data    Source code
       1             : #pragma once
       2             : 
       3             : #include "transforms/Sub.h"
       4             : 
       5             : namespace elsa
       6             : {
       7             :     /// @brief Subtract the two ranges together, while the first is the output range at the same
       8             :     /// time
       9             :     /// @ingroup transforms
      10             :     template <class InOutIter, class InputIter>
      11             :     void inplaceSub(InOutIter xfirst, InOutIter xlast, InputIter yfirst)
      12        6341 :     {
      13        6341 :         elsa::sub(xfirst, xlast, yfirst, xfirst);
      14        6341 :     }
      15             : 
      16             :     /// @brief Add a scalar from a range, while the given range is also the output range
      17             :     /// @ingroup transforms
      18             :     template <class InOutIter, class Scalar>
      19             :     void inplaceSubScalar(InOutIter xfirst, InOutIter xlast, const Scalar& scalar)
      20           9 :     {
      21           9 :         elsa::subScalar(xfirst, xlast, scalar, xfirst);
      22           9 :     }
      23             : } // namespace elsa

Generated by: LCOV version 1.14