diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2019-08-07 21:45:12 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-08-09 23:04:28 +0200 |
commit | f7bbf2c1d8d780294f3e016aff239ca35eb6516e (patch) | |
tree | e09ab6112e02b2215b2d59ac24d3d6ea2edac745 /gr-blocks/lib/vector_sink_impl.h | |
parent | 78431dc6941e3acc67c858277dfe4a0ed583643c (diff) |
Tree: clang-format without the include sorting
Diffstat (limited to 'gr-blocks/lib/vector_sink_impl.h')
-rw-r--r-- | gr-blocks/lib/vector_sink_impl.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/gr-blocks/lib/vector_sink_impl.h b/gr-blocks/lib/vector_sink_impl.h index 6e18e0b006..fd1263957b 100644 --- a/gr-blocks/lib/vector_sink_impl.h +++ b/gr-blocks/lib/vector_sink_impl.h @@ -28,31 +28,31 @@ #include <gnuradio/thread/thread.h> namespace gr { - namespace blocks { - -template<class T> - class vector_sink_impl : public vector_sink<T> - { - private: - std::vector<T> d_data; - std::vector<tag_t> d_tags; - mutable gr::thread::mutex d_data_mutex; // protects internal data access. - unsigned int d_vlen; - - public: - vector_sink_impl (unsigned int vlen, const int reserve_items); - ~vector_sink_impl (); - - void reset(); - std::vector<T> data() const; - std::vector<tag_t> tags() const; - - int work(int noutput_items, - gr_vector_const_void_star &input_items, - gr_vector_void_star &output_items); - }; - - } /* namespace blocks */ +namespace blocks { + +template <class T> +class vector_sink_impl : public vector_sink<T> +{ +private: + std::vector<T> d_data; + std::vector<tag_t> d_tags; + mutable gr::thread::mutex d_data_mutex; // protects internal data access. + unsigned int d_vlen; + +public: + vector_sink_impl(unsigned int vlen, const int reserve_items); + ~vector_sink_impl(); + + void reset(); + std::vector<T> data() const; + std::vector<tag_t> tags() const; + + int work(int noutput_items, + gr_vector_const_void_star& input_items, + gr_vector_void_star& output_items); +}; + +} /* namespace blocks */ } /* namespace gr */ #endif /* VECTOR_SINK_IMPL_H */ |