summaryrefslogtreecommitdiff
path: root/gr-digital/lib/chunks_to_symbols_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-digital/lib/chunks_to_symbols_impl.cc')
-rw-r--r--gr-digital/lib/chunks_to_symbols_impl.cc36
1 files changed, 17 insertions, 19 deletions
diff --git a/gr-digital/lib/chunks_to_symbols_impl.cc b/gr-digital/lib/chunks_to_symbols_impl.cc
index 26d590a66e..b4302b12de 100644
--- a/gr-digital/lib/chunks_to_symbols_impl.cc
+++ b/gr-digital/lib/chunks_to_symbols_impl.cc
@@ -32,6 +32,23 @@
namespace gr {
namespace digital {
+
+void set_vector_from_pmt(
+ std::vector<gr_complex>& symbol_table, pmt::pmt_t& symbol_table_pmt)
+{
+ size_t length;
+ const gr_complex* elements = pmt::c32vector_elements(symbol_table_pmt, length);
+ symbol_table.assign(elements, elements + length);
+}
+
+void set_vector_from_pmt(
+ std::vector<float>& symbol_table, pmt::pmt_t& symbol_table_pmt)
+{
+ size_t length;
+ const float* elements = pmt::f32vector_elements(symbol_table_pmt, length);
+ symbol_table.assign(elements, elements + length);
+}
+
template <class IN_T, class OUT_T>
typename chunks_to_symbols<IN_T, OUT_T>::sptr
chunks_to_symbols<IN_T, OUT_T>::make(const std::vector<OUT_T>& symbol_table, const int D)
@@ -62,25 +79,6 @@ chunks_to_symbols_impl<IN_T, OUT_T>::~chunks_to_symbols_impl()
{
}
-
-template <class IN_T, class OUT_T>
-void chunks_to_symbols_impl<IN_T, OUT_T>::set_vector_from_pmt(
- std::vector<gr_complex>& symbol_table, pmt::pmt_t& symbol_table_pmt)
-{
- size_t length;
- const gr_complex* elements = pmt::c32vector_elements(symbol_table_pmt, length);
- symbol_table.assign(elements, elements + length);
-}
-
-template <class IN_T, class OUT_T>
-void chunks_to_symbols_impl<IN_T, OUT_T>::set_vector_from_pmt(
- std::vector<float>& symbol_table, pmt::pmt_t& symbol_table_pmt)
-{
- size_t length;
- const float* elements = pmt::f32vector_elements(symbol_table_pmt, length);
- symbol_table.assign(elements, elements + length);
-}
-
template <class IN_T, class OUT_T>
void chunks_to_symbols_impl<IN_T, OUT_T>::handle_set_symbol_table(
pmt::pmt_t symbol_table_pmt)