Represent an avl of pair (number of a monomial, is leading monomial).
More...
#include <avl-monomial.h>
Represent an avl of pair (number of a monomial, is leading monomial).
Definition at line 79 of file avl-monomial.h.
Find the biggest NodeAvlMonomial of the AVL.
- Returns
- Pointer on the biggest node.
int F4::AvlMonomial::insert |
( |
int |
numMon, |
|
|
bool |
lt |
|
) |
| |
If numMon is already in the AVL, update its lt flag, otherwise insert a new node.
- Parameters
-
numMon | Number of a monomial. |
lt | true if numMon is a leading monomial, false otherwise. |
- Returns
- 0 if a new NodeAvlMonomial is created.
-
1 if the monomial already exist.
-
2 if the monomial already exist but was not a leading term. In this case its lt flag is set to 1.
void F4::AvlMonomial::printAvlMonomial |
( |
std::ostream & |
stream | ) |
const |
Print the AVL.
- Parameters
-
void F4::AvlMonomial::setLT |
( |
int |
numMon | ) |
|
Add numMon to the unordered set _lt.
- Parameters
-
numMon | Number of a monomial. |
size_t F4::AvlMonomial::size |
( |
| ) |
const |
Get the number of element in the AVL.
- Returns
- Number of element in the AVL.
unordered_set<int> F4::AvlMonomial::_lt |
|
private |
unordered_set<int> F4::AvlMonomial::_umon |
|
private |
Unorder set of monomial number to test membership
Definition at line 147 of file avl-monomial.h.
The documentation for this class was generated from the following file: