LCOV - code coverage report
Current view: top level - Tools - OneMinusFilter.h (source / functions) Hit Total Coverage
Test: coverage.info.cleaned Lines: 1 1 100.0 %
Date: 2021-02-18 20:07:22 Functions: 1 2 50.0 %

          Line data    Source code
       1             : /**
       2             :  * \file OneMinusFilter.h
       3             :  */
       4             : 
       5             : #ifndef ATK_TOOLS_ONEMINUSFILTER_H
       6             : #define ATK_TOOLS_ONEMINUSFILTER_H
       7             : 
       8             : #include <ATK/Core/TypedBaseFilter.h>
       9             : #include <ATK/Tools/config.h>
      10             : 
      11             : namespace ATK
      12             : {
      13             :   /// Computes 1 - input for all channels
      14             :   template<typename DataType_>
      15             :   class ATK_TOOLS_EXPORT OneMinusFilter final : public TypedBaseFilter<DataType_>
      16             :   {
      17             :   protected:
      18             :     /// Simplify parent calls
      19             :     using Parent = TypedBaseFilter<DataType_>;
      20             :     using typename Parent::DataType;
      21             :     using Parent::converted_inputs;
      22             :     using Parent::outputs;
      23             :     using Parent::output_delay;
      24             :     using Parent::nb_input_ports;
      25             :     using Parent::nb_output_ports;
      26             :     
      27             :   public:
      28             :     /*!
      29             :     * @brief Constructor
      30             :     * @param nb_channels is the number of input and output channels
      31             :     */
      32             :     explicit OneMinusFilter(gsl::index nb_channels = 1);
      33             :     /// Destructor
      34           1 :     ~OneMinusFilter() override = default;
      35             :     
      36             :   protected:
      37             :     void process_impl(gsl::index size) const final;
      38             :   };
      39             : }
      40             : 
      41             : #endif

Generated by: LCOV version TK-3.3.0-4-gdba42eea