GNU Radio Manual and C++ API Reference  3.7.13.4
The Free & Open Software Radio Ecosystem
alist Class Reference

#include <gnuradio/fec/alist.h>

Public Member Functions

 alist ()
 Default Constructor. More...
 
 alist (const char *fname)
 Constructor which loads alist class from an alist-file. More...
 
void read (const char *fname)
 Read alist data from a file. More...
 
void write (const char *fname) const
 Write alist data to a file. More...
 
int get_N ()
 Returns N, the number of variable nodes. More...
 
int get_M ()
 Return M, the number of check nodes. More...
 
std::vector< std::vector< int > > get_mlist ()
 Return the m_list variable. More...
 
std::vector< std::vector< int > > get_nlist ()
 Returns the n_list variable. More...
 
std::vector< int > get_num_mlist ()
 Returns the num_mlist variable. More...
 
std::vector< int > get_num_nlist ()
 Returns the num_nlist variable. More...
 
int get_max_num_nlist ()
 Returns the max_num_nlist variable. More...
 
int get_max_num_mlist ()
 Returns the max_num_mlist variable. More...
 
void print_nlist_i (int i)
 Prints the nlist[i] variable. More...
 
void print_mlist_i (int i)
 Prints the mlist[i] variable. More...
 
std::vector< std::vector< char > > get_matrix ()
 Returns the corresponding H matrix. More...
 

Protected Attributes

bool data_ok
 A variable indicating if data has been read from alist-file. More...
 
int N
 Number of variable nodes. More...
 
int M
 Number of check nodes. More...
 
int max_num_mlist
 Maximum weight of rows. More...
 
int max_num_nlist
 Maximum weight of columns. More...
 
std::vector< int > num_nlist
 Weight of each column n. More...
 
std::vector< int > num_mlist
 Weight of each row m. More...
 
std::vector< std::vector< int > > mlist
 List of integer coordinates along each rows with non-zero entries. More...
 
std::vector< std::vector< int > > nlist
 List of integer coordinates along each column with non-zero entries. More...
 

Constructor & Destructor Documentation

alist::alist ( )
inline

Default Constructor.

References pmt::read(), and pmt::write().

alist::alist ( const char *  fname)

Constructor which loads alist class from an alist-file.

Member Function Documentation

int alist::get_M ( )

Return M, the number of check nodes.

std::vector<std::vector<char> > alist::get_matrix ( )

Returns the corresponding H matrix.

int alist::get_max_num_mlist ( )

Returns the max_num_mlist variable.

int alist::get_max_num_nlist ( )

Returns the max_num_nlist variable.

std::vector< std::vector<int> > alist::get_mlist ( )

Return the m_list variable.

int alist::get_N ( )

Returns N, the number of variable nodes.

std::vector< std::vector<int> > alist::get_nlist ( )

Returns the n_list variable.

std::vector<int> alist::get_num_mlist ( )

Returns the num_mlist variable.

std::vector<int> alist::get_num_nlist ( )

Returns the num_nlist variable.

void alist::print_mlist_i ( int  i)

Prints the mlist[i] variable.

void alist::print_nlist_i ( int  i)

Prints the nlist[i] variable.

void alist::read ( const char *  fname)

Read alist data from a file.

void alist::write ( const char *  fname) const

Write alist data to a file.

Member Data Documentation

bool alist::data_ok
protected

A variable indicating if data has been read from alist-file.

int alist::M
protected

Number of check nodes.

int alist::max_num_mlist
protected

Maximum weight of rows.

int alist::max_num_nlist
protected

Maximum weight of columns.

std::vector< std::vector<int> > alist::mlist
protected

List of integer coordinates along each rows with non-zero entries.

int alist::N
protected

Number of variable nodes.

std::vector< std::vector<int> > alist::nlist
protected

List of integer coordinates along each column with non-zero entries.

std::vector<int> alist::num_mlist
protected

Weight of each row m.

std::vector<int> alist::num_nlist
protected

Weight of each column n.


The documentation for this class was generated from the following file: