OPENF4
Library for Gröebner basis computations over finite fields.
|
Represent an avl of critical pair. More...
#include <avl-critical-pair.h>
Public Member Functions | |
AvlCriticalPair () | |
Constructor. | |
void | printAvlCriticalPair (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... | |
bool | isEmpty () const |
Test if the AVL is empty. More... | |
void | testAVL () |
Test if the AVL is consistent. | |
int | insert (CriticalPair< Element > cp) |
Insert the critical pair cp in the AVL. More... | |
NodeAvlCriticalPair< Element > * | erase (NodeAvlCriticalPair< Element > *node) |
Delete the node pointed by node from the AVL. More... | |
NodeAvlCriticalPair< Element > * | findBiggest () |
Find the biggest NodeAvlCriticalPair of the AVL. More... | |
NodeAvlCriticalPair< Element > const * | findBiggest () const |
Find the biggest NodeAvlCriticalPair of the AVL. More... | |
NodeAvlCriticalPair< Element > * | findNextBiggest (NodeAvlCriticalPair< Element > *node) |
Find the next biggest NodeAvlCriticalPair after node. More... | |
NodeAvlCriticalPair< Element > const * | findNextBiggest (NodeAvlCriticalPair< Element > const *node) const |
Find the next biggest NodeAvlCriticalPair after node. More... | |
NodeAvlCriticalPair< Element > * | findSmallest () |
Find the smallest NodeAvlCriticalPair of the AVL. More... | |
NodeAvlCriticalPair< Element > const * | findSmallest () const |
Find the smallest NodeAvlCriticalPair of the AVL. More... | |
NodeAvlCriticalPair< Element > * | findNextSmallest (NodeAvlCriticalPair< Element > *node) |
Find the next smallest NodeAvlCriticalPair after node. More... | |
NodeAvlCriticalPair< Element > const * | findNextSmallest (NodeAvlCriticalPair< Element > const *node) const |
Find the next smallest NodeAvlCriticalPair after node. More... | |
Private Attributes | |
DynamicArray < NodeAvlCriticalPair< Element > > | _array |
NodeAvlCriticalPair< Element > * | _it |
NodeAvlCriticalPair< Element > * | _root |
size_t | _size |
Represent an avl of critical pair.
Definition at line 81 of file avl-critical-pair.h.
NodeAvlCriticalPair<Element>* F4::AvlCriticalPair< Element >::erase | ( | NodeAvlCriticalPair< Element > * | node | ) |
Delete the node pointed by node from the AVL.
node | Pointer on a node. |
NodeAvlCriticalPair<Element>* F4::AvlCriticalPair< Element >::findBiggest | ( | ) |
Find the biggest NodeAvlCriticalPair of the AVL.
NodeAvlCriticalPair<Element> const* F4::AvlCriticalPair< Element >::findBiggest | ( | ) | const |
Find the biggest NodeAvlCriticalPair of the AVL.
NodeAvlCriticalPair<Element>* F4::AvlCriticalPair< Element >::findNextBiggest | ( | NodeAvlCriticalPair< Element > * | node | ) |
Find the next biggest NodeAvlCriticalPair after node.
node | Pointer on a node. |
NodeAvlCriticalPair<Element> const* F4::AvlCriticalPair< Element >::findNextBiggest | ( | NodeAvlCriticalPair< Element > const * | node | ) | const |
Find the next biggest NodeAvlCriticalPair after node.
node | Pointer on a node. |
NodeAvlCriticalPair<Element>* F4::AvlCriticalPair< Element >::findNextSmallest | ( | NodeAvlCriticalPair< Element > * | node | ) |
Find the next smallest NodeAvlCriticalPair after node.
node | Pointer on a node. |
NodeAvlCriticalPair<Element> const* F4::AvlCriticalPair< Element >::findNextSmallest | ( | NodeAvlCriticalPair< Element > const * | node | ) | const |
Find the next smallest NodeAvlCriticalPair after node.
node | Pointer on a node. |
NodeAvlCriticalPair<Element>* F4::AvlCriticalPair< Element >::findSmallest | ( | ) |
Find the smallest NodeAvlCriticalPair of the AVL.
NodeAvlCriticalPair<Element> const* F4::AvlCriticalPair< Element >::findSmallest | ( | ) | const |
Find the smallest NodeAvlCriticalPair of the AVL.
int F4::AvlCriticalPair< Element >::insert | ( | CriticalPair< Element > | cp | ) |
Insert the critical pair cp in the AVL.
cp | Critical pair |
bool F4::AvlCriticalPair< Element >::isEmpty | ( | ) | const |
Test if the AVL is empty.
void F4::AvlCriticalPair< Element >::printAvlCriticalPair | ( | std::ostream & | stream | ) | const |
Print the AVL.
stream | Stream. |
size_t F4::AvlCriticalPair< Element >::size | ( | ) | const |
Get the number of element in the AVL.
|
private |
Dynamic array of NodeAvlCriticalPair.
Definition at line 201 of file avl-critical-pair.h.
|
private |
Iterator.
Definition at line 202 of file avl-critical-pair.h.
|
private |
Root of the AVL.
Definition at line 203 of file avl-critical-pair.h.
|
private |
Number of node in the AVL.
Definition at line 204 of file avl-critical-pair.h.