summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/threshold_ff_impl.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-blocks/lib/threshold_ff_impl.h
parent78431dc6941e3acc67c858277dfe4a0ed583643c (diff)
Tree: clang-format without the include sorting
Diffstat (limited to 'gr-blocks/lib/threshold_ff_impl.h')
-rw-r--r--gr-blocks/lib/threshold_ff_impl.h51
1 files changed, 25 insertions, 26 deletions
diff --git a/gr-blocks/lib/threshold_ff_impl.h b/gr-blocks/lib/threshold_ff_impl.h
index 13d71c433f..541ba291f4 100644
--- a/gr-blocks/lib/threshold_ff_impl.h
+++ b/gr-blocks/lib/threshold_ff_impl.h
@@ -26,32 +26,31 @@
#include <gnuradio/blocks/threshold_ff.h>
namespace gr {
- namespace blocks {
-
- class threshold_ff_impl : public threshold_ff
- {
- private:
- float d_lo, d_hi; // the constant
- float d_last_state;
-
- public:
- threshold_ff_impl(float lo, float hi,
- float initial_state=0);
- ~threshold_ff_impl();
-
- float lo() const { return d_lo; }
- void set_lo(float lo) { d_lo = lo; }
- float hi() const { return d_hi; }
- void set_hi(float hi) { d_hi = hi; }
- float last_state() const { return d_last_state; }
- void set_last_state(float last_state) { d_last_state = last_state; }
-
- int work(int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
- };
-
- } /* namespace blocks */
+namespace blocks {
+
+class threshold_ff_impl : public threshold_ff
+{
+private:
+ float d_lo, d_hi; // the constant
+ float d_last_state;
+
+public:
+ threshold_ff_impl(float lo, float hi, float initial_state = 0);
+ ~threshold_ff_impl();
+
+ float lo() const { return d_lo; }
+ void set_lo(float lo) { d_lo = lo; }
+ float hi() const { return d_hi; }
+ void set_hi(float hi) { d_hi = hi; }
+ float last_state() const { return d_last_state; }
+ void set_last_state(float last_state) { d_last_state = last_state; }
+
+ int work(int noutput_items,
+ gr_vector_const_void_star& input_items,
+ gr_vector_void_star& output_items);
+};
+
+} /* namespace blocks */
} /* namespace gr */
#endif /* INCLUDED_GR_THRESHOLD_FF_IMPL_H */