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-trellis/lib/permutation_impl.h | |
parent | 78431dc6941e3acc67c858277dfe4a0ed583643c (diff) |
Tree: clang-format without the include sorting
Diffstat (limited to 'gr-trellis/lib/permutation_impl.h')
-rw-r--r-- | gr-trellis/lib/permutation_impl.h | 62 |
1 files changed, 32 insertions, 30 deletions
diff --git a/gr-trellis/lib/permutation_impl.h b/gr-trellis/lib/permutation_impl.h index e013e52a20..f8adcca38d 100644 --- a/gr-trellis/lib/permutation_impl.h +++ b/gr-trellis/lib/permutation_impl.h @@ -27,36 +27,38 @@ #include <gnuradio/trellis/permutation.h> namespace gr { - namespace trellis { - - class permutation_impl : public permutation - { - private: - int d_K; - std::vector<int> d_TABLE; - int d_SYMS_PER_BLOCK; - size_t d_BYTES_PER_SYMBOL; - - public: - permutation_impl(int K, const std::vector<int> &TABLE, - int SYMS_PER_BLOCK, size_t NBYTES); - ~permutation_impl(); - - int K() const { return d_K; } - std::vector<int> TABLE() const { return d_TABLE; } - int SYMS_PER_BLOCK() const { return d_SYMS_PER_BLOCK; } - size_t BYTES_PER_SYMBOL() const { return d_BYTES_PER_SYMBOL; } - - void set_K(int K) ; - void set_TABLE (const std::vector<int> &table); - void set_SYMS_PER_BLOCK(int spb) ; - - int work(int noutput_items, - gr_vector_const_void_star &input_items, - gr_vector_void_star &output_items); - }; - - } /* namespace trellis */ +namespace trellis { + +class permutation_impl : public permutation +{ +private: + int d_K; + std::vector<int> d_TABLE; + int d_SYMS_PER_BLOCK; + size_t d_BYTES_PER_SYMBOL; + +public: + permutation_impl(int K, + const std::vector<int>& TABLE, + int SYMS_PER_BLOCK, + size_t NBYTES); + ~permutation_impl(); + + int K() const { return d_K; } + std::vector<int> TABLE() const { return d_TABLE; } + int SYMS_PER_BLOCK() const { return d_SYMS_PER_BLOCK; } + size_t BYTES_PER_SYMBOL() const { return d_BYTES_PER_SYMBOL; } + + void set_K(int K); + void set_TABLE(const std::vector<int>& table); + void set_SYMS_PER_BLOCK(int spb); + + int work(int noutput_items, + gr_vector_const_void_star& input_items, + gr_vector_void_star& output_items); +}; + +} /* namespace trellis */ } /* namespace gr */ #endif /* INCLUDED_TRELLIS_PERMUTATION_IMPL_H */ |