26 #ifndef OPENF4_AVL_CRITICAL_PAIR_H
27 #define OPENF4_AVL_CRITICAL_PAIR_H
47 template<
typename Element>
72 template<
typename Element>
80 template<
typename Element>
212 template <
typename Element>
213 std::ostream & operator<<(std::ostream & stream, AvlCriticalPair<Element>
const & avlCriticalPair);
217 #include "../src/avl-critical-pair.inl"
220 #endif // OPENF4_AVL_CRITICAL_PAIR_H
void testAVL()
Test if the AVL is consistent.
NodeAvlCriticalPair< Element > * findSmallest()
Find the smallest NodeAvlCriticalPair of the AVL.
Represent an avl of critical pair.
Declaration of class DynamicArray.
int insert(CriticalPair< Element > cp)
Insert the critical pair cp in the AVL.
void printNode(NodeAvlPolynomial *p, int indent=0)
Print the AVL of root p.
bool isEmpty() const
Test if the AVL is empty.
NodeAvlCriticalPair * _right
Represent a critical pair.
NodeAvlCriticalPair< Element > * _it
void reset()
Reset the AVL for a new usage, memory is not clear.
NodeAvlCriticalPair< Element > * findNextBiggest(NodeAvlCriticalPair< Element > *node)
Find the next biggest NodeAvlCriticalPair after node.
Wrapper for config.h in order to avoid multiple definitions.
Represent a dynamic array whose the width is fixed, the memory is allocated by blocs.
DynamicArray< NodeAvlCriticalPair< Element > > _array
NodeAvlCriticalPair< Element > * findBiggest()
Find the biggest NodeAvlCriticalPair of the AVL.
AvlCriticalPair()
Constructor.
NodeAvlCriticalPair< Element > * findNextSmallest(NodeAvlCriticalPair< Element > *node)
Find the next smallest NodeAvlCriticalPair after node.
NodeAvlCriticalPair< Element > * erase(NodeAvlCriticalPair< Element > *node)
Delete the node pointed by node from the AVL.
NodeAvlCriticalPair * _left
void printAvlCriticalPair(std::ostream &stream) const
Print the AVL.
NodeAvlCriticalPair()
Constructor.
Declaration of class CriticalPair.
size_t size() const
Get the number of element in the AVL.
NodeAvlCriticalPair * _parent
Represent a node of the AVL of critical pairs.
CriticalPair< Element > _cp
NodeAvlCriticalPair< Element > * _root