GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
GF2Vec Class Reference

#include <gnuradio/fec/gf2vec.h>

Public Member Functions

 GF2Vec ()
 Default constructor. More...
 
 GF2Vec (int size)
 Constructs a vector of length "size" with all 0 entries. More...
 
std::vector< uint8_t > get_vec ()
 Returns the vector. More...
 
int size ()
 Returns the size of the vector. More...
 
void set_vec (const std::vector< uint8_t >)
 Resets the vector with the given input. More...
 
uint8_t & operator[] (int i)
 Access the ith element. More...
 
void operator= (GF2Vec x)
 Overloading the operator '='. More...
 
GF2Vec sub_vector (int i, int j)
 Obtain a subvector between the indices i to j. More...
 
void print_vec ()
 Prints the vector. More...
 

Friends

GF2Vec operator+ (GF2Vec a, GF2Vec b)
 Overloading the operator '+'. More...
 
uint8_t operator* (GF2Vec a, GF2Vec b)
 Overloading the operator '*'. More...
 

Constructor & Destructor Documentation

◆ GF2Vec() [1/2]

GF2Vec::GF2Vec ( )
inline

Default constructor.

◆ GF2Vec() [2/2]

GF2Vec::GF2Vec ( int  size)

Constructs a vector of length "size" with all 0 entries.

Member Function Documentation

◆ get_vec()

std::vector<uint8_t> GF2Vec::get_vec ( )

Returns the vector.

◆ operator=()

void GF2Vec::operator= ( GF2Vec  x)

Overloading the operator '='.

◆ operator[]()

uint8_t& GF2Vec::operator[] ( int  i)

Access the ith element.

◆ print_vec()

void GF2Vec::print_vec ( )

Prints the vector.

◆ set_vec()

void GF2Vec::set_vec ( const std::vector< uint8_t >  )

Resets the vector with the given input.

◆ size()

int GF2Vec::size ( )

Returns the size of the vector.

◆ sub_vector()

GF2Vec GF2Vec::sub_vector ( int  i,
int  j 
)

Obtain a subvector between the indices i to j.

Friends And Related Function Documentation

◆ operator*

uint8_t operator* ( GF2Vec  a,
GF2Vec  b 
)
friend

Overloading the operator '*'.

◆ operator+

GF2Vec operator+ ( GF2Vec  a,
GF2Vec  b 
)
friend

Overloading the operator '+'.


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