#include <monomial.h>
Public Member Functions | |
Monomial (mpz_t _c, Term *_t) | |
Term * | get_term () const |
Term * | get_term_copy () const |
unsigned | get_term_size () const |
unsigned | dec_ref () |
unsigned | get_ref () const |
Monomial * | copy () |
void | print (FILE *file, bool lm=0) const |
~Monomial () | |
Public Attributes | |
mpz_t | coeff |
Coefficient. More... | |
Private Attributes | |
Term * | term |
Term*. More... | |
unsigned | ref |
reference counter More... | |
This class is used to represent monomials in a polynomial. A monomial consist of a coefficient and a term.
Monomial::Monomial | ( | mpz_t | _c, |
Term * | _t | ||
) |
Constructor
c | mpz_t coefficient |
t | Term* |
Monomial::~Monomial | ( | ) |
Destructor
Monomial * Monomial::copy | ( | ) |
Copy routine
|
inline |
Decreases the reference counter
|
inline |
Getter for the reference counter
|
inline |
Getter for member term
|
inline |
Getter for member term, calls copy routine of Term
|
inline |
Returns the size fo the term
void Monomial::print | ( | FILE * | file, |
bool | lm = 0 |
||
) | const |
Printing routine
file | Output file |
lm | bool indicating whether we print a leading monomial |
mpz_t Monomial::coeff |
Coefficient.
|
private |
reference counter
|
private |
Term*.