21#ifndef INCLUDED_ldpc_G_matrix_H
22#define INCLUDED_ldpc_G_matrix_H
26#include <boost/enable_shared_from_this.hpp>
27#include <boost/shared_ptr.hpp>
55 public boost::enable_shared_from_this<ldpc_G_matrix>
58 typedef boost::shared_ptr<ldpc_G_matrix>
sptr;
74 virtual void encode(
unsigned char* outbuffer,
75 const unsigned char* inbuffer)
const = 0;
78 virtual void decode(
unsigned char* outbuffer,
79 const float* inbuffer,
80 unsigned int frame_size,
81 unsigned int max_iterations)
const = 0;
92 virtual gr::fec::code::fec_mtrx_sptr get_base_sptr() = 0;
Base class for FEC matrix objects.
Definition fec_mtrx.h:136
Class for storing H or G matrix.
Definition ldpc_G_matrix.h:56
static sptr make(const std::string filename)
Constructor given alist file.
virtual void decode(unsigned char *outbuffer, const float *inbuffer, unsigned int frame_size, unsigned int max_iterations) const =0
Decode inbuffer with LDPC H matrix into outbuffer.
boost::shared_ptr< ldpc_G_matrix > sptr
Definition ldpc_G_matrix.h:58
virtual void encode(unsigned char *outbuffer, const unsigned char *inbuffer) const =0
Encode inbuffer with LDPC H matrix into outbuffer.
#define FEC_API
Definition gr-fec/include/gnuradio/fec/api.h:30
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition basic_block.h:46