summaryrefslogtreecommitdiff
path: root/gr-analog/lib/squelch_base_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-analog/lib/squelch_base_ff_impl.h
parent78431dc6941e3acc67c858277dfe4a0ed583643c (diff)
Tree: clang-format without the include sorting
Diffstat (limited to 'gr-analog/lib/squelch_base_ff_impl.h')
-rw-r--r--gr-analog/lib/squelch_base_ff_impl.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/gr-analog/lib/squelch_base_ff_impl.h b/gr-analog/lib/squelch_base_ff_impl.h
index b6a7efe609..6311752213 100644
--- a/gr-analog/lib/squelch_base_ff_impl.h
+++ b/gr-analog/lib/squelch_base_ff_impl.h
@@ -27,42 +27,42 @@
#include <pmt/pmt.h>
namespace gr {
- namespace analog {
+namespace analog {
- class squelch_base_ff_impl : public squelch_base_ff
- {
- private:
- int d_ramp;
- int d_ramped;
- bool d_gate;
- double d_envelope;
- enum { ST_MUTED, ST_ATTACK, ST_UNMUTED, ST_DECAY } d_state;
- const pmt::pmt_t d_sob_key, d_eob_key;
- bool d_tag_next_unmuted;
+class squelch_base_ff_impl : public squelch_base_ff
+{
+private:
+ int d_ramp;
+ int d_ramped;
+ bool d_gate;
+ double d_envelope;
+ enum { ST_MUTED, ST_ATTACK, ST_UNMUTED, ST_DECAY } d_state;
+ const pmt::pmt_t d_sob_key, d_eob_key;
+ bool d_tag_next_unmuted;
- protected:
- virtual void update_state(const float &sample) {};
- virtual bool mute() const { return false; };
+protected:
+ virtual void update_state(const float& sample){};
+ virtual bool mute() const { return false; };
- public:
- squelch_base_ff_impl(const char *name, int ramp, bool gate);
- ~squelch_base_ff_impl();
+public:
+ squelch_base_ff_impl(const char* name, int ramp, bool gate);
+ ~squelch_base_ff_impl();
- int ramp() const;
- void set_ramp(int ramp);
- bool gate() const;
- void set_gate(bool gate);
- bool unmuted() const;
+ int ramp() const;
+ void set_ramp(int ramp);
+ bool gate() const;
+ void set_gate(bool gate);
+ bool unmuted() const;
- virtual std::vector<float> squelch_range() const = 0;
+ virtual std::vector<float> squelch_range() const = 0;
- int general_work(int noutput_items,
- gr_vector_int &ninput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
- };
+ int general_work(int noutput_items,
+ gr_vector_int& ninput_items,
+ gr_vector_const_void_star& input_items,
+ gr_vector_void_star& output_items);
+};
- } /* namespace analog */
+} /* namespace analog */
} /* namespace gr */
#endif /* INCLUDED_ANALOG_SQUELCH_BASE_IMPL_FF_H */