![]() |
OPENF4
Library for Gröebner basis computations over finite fields.
|
Represent an avl of triple (number of a polynomial, number of its leading monomial, number of terms). More...
#include <avl-polynomial.h>
Public Member Functions | |
| AvlPolynomial () | |
| Constructor. | |
| void | printAvlPolynomial (std::ostream &stream) const |
| Print the AVL. More... | |
| void | reset () |
| Reset the AVL for a new usage, memory is not clear. | |
| size_t | size () const |
| Get the number of element in the AVL. More... | |
| int | insert (int numPol, int numMon, int nbTerms) |
| Insert a new polynomial into the AVL. More... | |
| NodeAvlPolynomial * | findBiggest () |
| Find the biggest node of the AVL. More... | |
| NodeAvlPolynomial const * | findBiggest () const |
| Find the biggest node of the AVL. More... | |
| NodeAvlPolynomial * | findNextBiggest (NodeAvlPolynomial *node) |
| Find the next biggest node after node. More... | |
| NodeAvlPolynomial const * | findNextBiggest (NodeAvlPolynomial const *node) const |
| Find the next biggest node after node. More... | |
Private Attributes | |
| DynamicArray< NodeAvlPolynomial > | _array |
| NodeAvlPolynomial * | _it |
| NodeAvlPolynomial * | _root |
| size_t | _size |
Represent an avl of triple (number of a polynomial, number of its leading monomial, number of terms).
Definition at line 79 of file avl-polynomial.h.
| NodeAvlPolynomial* F4::AvlPolynomial::findBiggest | ( | ) |
Find the biggest node of the AVL.
| NodeAvlPolynomial const* F4::AvlPolynomial::findBiggest | ( | ) | const |
Find the biggest node of the AVL.
| NodeAvlPolynomial* F4::AvlPolynomial::findNextBiggest | ( | NodeAvlPolynomial * | node | ) |
Find the next biggest node after node.
| node | Pointer on a node. |
| NodeAvlPolynomial const* F4::AvlPolynomial::findNextBiggest | ( | NodeAvlPolynomial const * | node | ) | const |
Find the next biggest node after node.
| node | Pointer on a node. |
| int F4::AvlPolynomial::insert | ( | int | numPol, |
| int | numMon, | ||
| int | nbTerms | ||
| ) |
Insert a new polynomial into the AVL.
| numPol | Index of the polynomial. |
| numMon | Number of a monomial. |
| nbTerms | Number of term of the polynomial. |
| void F4::AvlPolynomial::printAvlPolynomial | ( | std::ostream & | stream | ) | const |
Print the AVL.
| stream | Stream. |
| size_t F4::AvlPolynomial::size | ( | ) | const |
Get the number of element in the AVL.
|
private |
Dynamic array of NodeAvlPolynomial.
Definition at line 152 of file avl-polynomial.h.
|
private |
Iterator.
Definition at line 153 of file avl-polynomial.h.
|
private |
Root of the AVL.
Definition at line 154 of file avl-polynomial.h.
|
private |
Number of node in the AVL.
Definition at line 155 of file avl-polynomial.h.
1.8.6