diff options
Diffstat (limited to 'gr-blocks/include/gnuradio/blocks/add_const_cc.h')
-rw-r--r-- | gr-blocks/include/gnuradio/blocks/add_const_cc.h | 57 |
1 files changed, 28 insertions, 29 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/add_const_cc.h b/gr-blocks/include/gnuradio/blocks/add_const_cc.h index 35a15f72a8..810f04133e 100644 --- a/gr-blocks/include/gnuradio/blocks/add_const_cc.h +++ b/gr-blocks/include/gnuradio/blocks/add_const_cc.h @@ -27,37 +27,36 @@ #include <gnuradio/sync_block.h> namespace gr { - namespace blocks { +namespace blocks { + +/*! + * \brief output = input + constant + * \ingroup math_operators_blk + */ +class BLOCKS_API add_const_cc : virtual public sync_block +{ +public: + // gr::blocks::add_const_cc::sptr + typedef boost::shared_ptr<add_const_cc> sptr; + + /*! + * \brief Create an instance of add_const_cc + * \param k additive constant + */ + static sptr make(gr_complex k); /*! - * \brief output = input + constant - * \ingroup math_operators_blk + * \brief Return additive constant */ - class BLOCKS_API add_const_cc : virtual public sync_block - { - public: - - // gr::blocks::add_const_cc::sptr - typedef boost::shared_ptr<add_const_cc> sptr; - - /*! - * \brief Create an instance of add_const_cc - * \param k additive constant - */ - static sptr make(gr_complex k); - - /*! - * \brief Return additive constant - */ - virtual gr_complex k() const = 0; - - /*! - * \brief Set additive constant - */ - virtual void set_k(gr_complex k) = 0; - }; - - } -} + virtual gr_complex k() const = 0; + + /*! + * \brief Set additive constant + */ + virtual void set_k(gr_complex k) = 0; +}; + +} // namespace blocks +} // namespace gr #endif /* ADD_CONST_CC */ |