resource_mapper_cc_impl.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2016 Johannes Demel.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
#ifndef INCLUDED_GFDM_RESOURCE_MAPPER_CC_IMPL_H
#define INCLUDED_GFDM_RESOURCE_MAPPER_CC_IMPL_H
#include <gfdm/resource_mapper_cc.h>
#include <gfdm/resource_mapper_kernel_cc.h>
namespace gr {
namespace gfdm {
class resource_mapper_cc_impl : public resource_mapper_cc
{
private:
resource_mapper_kernel_cc::sptr d_kernel;
public:
resource_mapper_cc_impl(int timeslots, int subcarriers, int active_subcarriers, std::vector<int>subcarrier_map, bool per_timeslot);
~resource_mapper_cc_impl();
// Where all the action really happens
void forecast (int noutput_items, gr_vector_int &ninput_items_required);
int fixed_rate_ninput_to_noutput(int ninput);
int fixed_rate_noutput_to_ninput(int noutput);
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 gfdm
} // namespace gr
#endif /* INCLUDED_GFDM_RESOURCE_MAPPER_CC_IMPL_H */
gr::gfdm::resource_mapper_cc_impl
Definition resource_mapper_cc_impl.h:31
gr::gfdm::resource_mapper_cc_impl::fixed_rate_ninput_to_noutput
int fixed_rate_ninput_to_noutput(int ninput)
gr::gfdm::resource_mapper_cc_impl::resource_mapper_cc_impl
resource_mapper_cc_impl(int timeslots, int subcarriers, int active_subcarriers, std::vector< int >subcarrier_map, bool per_timeslot)
gr::gfdm::resource_mapper_cc_impl::forecast
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
gr::gfdm::resource_mapper_cc_impl::~resource_mapper_cc_impl
~resource_mapper_cc_impl()
gr::gfdm::resource_mapper_cc_impl::fixed_rate_noutput_to_ninput
int fixed_rate_noutput_to_ninput(int noutput)
gr::gfdm::resource_mapper_cc_impl::general_work
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::gfdm::resource_mapper_cc
Take timeslots * active_subcarriers items and map them on a vector for GFDM modulation.
Definition resource_mapper_cc.h:37
gr::gfdm::resource_mapper_kernel_cc::sptr
boost::shared_ptr< resource_mapper_kernel_cc > sptr
Definition resource_mapper_kernel_cc.h:42
gr
Definition add_cyclic_prefix_cc.h:30
resource_mapper_cc.h
resource_mapper_kernel_cc.h