diff options
Diffstat (limited to 'gr-blocks/include/gnuradio/blocks/multiply_const.h')
-rw-r--r-- | gr-blocks/include/gnuradio/blocks/multiply_const.h | 55 |
1 files changed, 27 insertions, 28 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/multiply_const.h b/gr-blocks/include/gnuradio/blocks/multiply_const.h index 8781d57659..7ebaffff5d 100644 --- a/gr-blocks/include/gnuradio/blocks/multiply_const.h +++ b/gr-blocks/include/gnuradio/blocks/multiply_const.h @@ -29,44 +29,43 @@ #include <cstdint> namespace gr { - namespace blocks { +namespace blocks { - /*! - * \brief output = input * constant - * \ingroup math_operators_blk - */ -template<class T> - class BLOCKS_API multiply_const : virtual public sync_block - { - - public: +/*! + * \brief output = input * constant + * \ingroup math_operators_blk + */ +template <class T> +class BLOCKS_API multiply_const : virtual public sync_block +{ - // gr::blocks::multiply_const::sptr - typedef boost::shared_ptr< multiply_const<T> > sptr; +public: + // gr::blocks::multiply_const::sptr + typedef boost::shared_ptr<multiply_const<T>> sptr; - /*! - * \brief Create an instance of multiply_const - * \param k multiplicative constant - * \param vlen number of items in vector - */ - static sptr make(T k, size_t vlen=1); + /*! + * \brief Create an instance of multiply_const + * \param k multiplicative constant + * \param vlen number of items in vector + */ + static sptr make(T k, size_t vlen = 1); - /*! - * \brief Return multiplicative constant - */ - virtual T k() const = 0; + /*! + * \brief Return multiplicative constant + */ + virtual T k() const = 0; - /*! - * \brief Set multiplicative constant - */ - virtual void set_k(T k) = 0; - }; + /*! + * \brief Set multiplicative constant + */ + virtual void set_k(T k) = 0; +}; typedef multiply_const<std::int16_t> multiply_const_ss; typedef multiply_const<std::int32_t> multiply_const_ii; typedef multiply_const<float> multiply_const_ff; typedef multiply_const<gr_complex> multiply_const_cc; - } /* namespace blocks */ +} /* namespace blocks */ } /* namespace gr */ #endif /* MULTIPLY_CONST_H */ |