#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< char > | get_vec () |
Returns the vector. More... | |
int | size () |
Returns the size of the vector. More... | |
void | set_vec (const std::vector< char >) |
Resets the vector with the given input. More... | |
char & | 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... | |
char | operator* (GF2Vec a, GF2Vec b) |
Overloading the operator '*'. More... | |
|
inline |
Default constructor.
References get_vec(), operator*, operator+, operator=(), operator[](), print_vec(), set_vec(), size(), and sub_vector().
GF2Vec::GF2Vec | ( | int | size | ) |
Constructs a vector of length "size" with all 0 entries.
std::vector<char> GF2Vec::get_vec | ( | ) |
Returns the vector.
Referenced by GF2Vec().
char& GF2Vec::operator[] | ( | int | i | ) |
Access the ith element.
Referenced by GF2Vec().
void GF2Vec::print_vec | ( | ) |
Prints the vector.
Referenced by GF2Vec().
void GF2Vec::set_vec | ( | const std::vector< char > | ) |
Resets the vector with the given input.
Referenced by GF2Vec().
int GF2Vec::size | ( | ) |
Returns the size of the vector.
Referenced by GF2Vec().
GF2Vec GF2Vec::sub_vector | ( | int | i, |
int | j | ||
) |
Obtain a subvector between the indices i to j.
Referenced by GF2Vec().
Overloading the operator '+'.
Referenced by GF2Vec().