summaryrefslogtreecommitdiff
path: root/gr-analog/include/gnuradio/analog/random_uniform_source.h
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2019-08-07 21:45:12 +0200
committerMarcus Müller <marcus@hostalia.de>2019-08-09 23:04:28 +0200
commitf7bbf2c1d8d780294f3e016aff239ca35eb6516e (patch)
treee09ab6112e02b2215b2d59ac24d3d6ea2edac745 /gr-analog/include/gnuradio/analog/random_uniform_source.h
parent78431dc6941e3acc67c858277dfe4a0ed583643c (diff)
Tree: clang-format without the include sorting
Diffstat (limited to 'gr-analog/include/gnuradio/analog/random_uniform_source.h')
-rw-r--r--gr-analog/include/gnuradio/analog/random_uniform_source.h55
1 files changed, 28 insertions, 27 deletions
diff --git a/gr-analog/include/gnuradio/analog/random_uniform_source.h b/gr-analog/include/gnuradio/analog/random_uniform_source.h
index 1cd0f3016d..dbbd5557af 100644
--- a/gr-analog/include/gnuradio/analog/random_uniform_source.h
+++ b/gr-analog/include/gnuradio/analog/random_uniform_source.h
@@ -28,37 +28,38 @@
#include <gnuradio/sync_block.h>
namespace gr {
- namespace analog {
+namespace analog {
+
+/*!
+ * \brief Uniform Random Number Generator
+ * \ingroup waveform_generators_blk
+ */
+template <class T>
+class ANALOG_API random_uniform_source : virtual public sync_block
+{
+public:
+ // gr::analog::random_uniform_source::sptr
+ typedef boost::shared_ptr<random_uniform_source<T>> sptr;
/*!
- * \brief Uniform Random Number Generator
- * \ingroup waveform_generators_blk
+ * \brief Return a shared_ptr to a new instance of analog::random_uniform_source_X.
+ *
+ * To avoid accidental use of raw pointers, analog::random_uniform_source_b's
+ * constructor is in a private implementation
+ * class. analog::random_uniform_source_b::make is the public interface for
+ * creating new instances.
+ * \param minimum defines minimal integer value output.
+ * \param maximum output values are below this value
+ * \param seed for Pseudo Random Number Generator. Defaults to 0. In this case current
+ * time is used.
*/
-template<class T>
- class ANALOG_API random_uniform_source : virtual public sync_block
- {
- public:
- // gr::analog::random_uniform_source::sptr
- typedef boost::shared_ptr< random_uniform_source<T> > sptr;
-
- /*!
- * \brief Return a shared_ptr to a new instance of analog::random_uniform_source_X.
- *
- * To avoid accidental use of raw pointers, analog::random_uniform_source_b's
- * constructor is in a private implementation
- * class. analog::random_uniform_source_b::make is the public interface for
- * creating new instances.
- * \param minimum defines minimal integer value output.
- * \param maximum output values are below this value
- * \param seed for Pseudo Random Number Generator. Defaults to 0. In this case current time is used.
- */
- static sptr make(int minimum, int maximum, int seed);
- };
+ static sptr make(int minimum, int maximum, int seed);
+};
- typedef random_uniform_source<std::uint8_t> random_uniform_source_b;
- typedef random_uniform_source<std::int16_t> random_uniform_source_s;
- typedef random_uniform_source<std::int32_t> random_uniform_source_i;
- } /* namespace analog */
+typedef random_uniform_source<std::uint8_t> random_uniform_source_b;
+typedef random_uniform_source<std::int16_t> random_uniform_source_s;
+typedef random_uniform_source<std::int32_t> random_uniform_source_i;
+} /* namespace analog */
} /* namespace gr */
#endif /* RANDOM_UNIFORM_SOURCE_H */