diff options
Diffstat (limited to 'gr-blocks/include/gnuradio/blocks/sample_and_hold.h')
-rw-r--r-- | gr-blocks/include/gnuradio/blocks/sample_and_hold.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/sample_and_hold.h b/gr-blocks/include/gnuradio/blocks/sample_and_hold.h index a6172a75c5..71230e7199 100644 --- a/gr-blocks/include/gnuradio/blocks/sample_and_hold.h +++ b/gr-blocks/include/gnuradio/blocks/sample_and_hold.h @@ -29,31 +29,31 @@ #include <cstdint> namespace gr { - namespace blocks { - - /*! - * \brief sample and hold circuit - * \ingroup level_controllers_blk - * - * \details - * Samples the data stream (input stream 0) and holds the value if - * the control signal is 1 (intput stream 1). - */ -template<class T> - class BLOCKS_API sample_and_hold : virtual public sync_block - { - public: - // gr::blocks::sample_and_hold::sptr - typedef boost::shared_ptr< sample_and_hold<T> > sptr; - - static sptr make(); - }; +namespace blocks { + +/*! + * \brief sample and hold circuit + * \ingroup level_controllers_blk + * + * \details + * Samples the data stream (input stream 0) and holds the value if + * the control signal is 1 (intput stream 1). + */ +template <class T> +class BLOCKS_API sample_and_hold : virtual public sync_block +{ +public: + // gr::blocks::sample_and_hold::sptr + typedef boost::shared_ptr<sample_and_hold<T>> sptr; + + static sptr make(); +}; typedef sample_and_hold<std::uint8_t> sample_and_hold_bb; typedef sample_and_hold<std::int16_t> sample_and_hold_ss; typedef sample_and_hold<std::int32_t> sample_and_hold_ii; typedef sample_and_hold<float> sample_and_hold_ff; - } /* namespace blocks */ +} /* namespace blocks */ } /* namespace gr */ #endif /* SAMPLE_AND_HOLD_H */ |