 |
My Project
debian-1:4.1.2-p1+ds-2
|
Go to the documentation of this file.
15 #ifndef POLYENUMERATOR_H
16 #define POLYENUMERATOR_H
160 template <
class ConverterPolicy>
virtual IPolyCoeffsEnumerator::const_reference Current() const
Gets the current element in the collection (read only).
void Reset(poly p)
Reset this polynomial Enumerator with a different input polynomial.
poly m_position
current position in the iterable object
virtual IPolyCoeffsEnumerator::const_reference Current() const
Gets the current element in the collection (read only).
virtual reference Current()=0
Gets the current element in the collection (read and write).
virtual void Reset()
Sets the enumerator to its initial position: -1, which is before the first element in the collection.
virtual bool IsValid() const
Current position is inside the collection (not -1 or past the end)
const typedef value_type & const_reference
CPolyCoeffsEnumerator(poly p)
CBasePolyEnumerator m_local_enumerator
iterates the current coeff. of m_global_enumerator
virtual IPolyCoeffsEnumerator::reference Current()
Gets the current element in the collection (read and write).
virtual void Reset()=0
Sets the enumerator to its initial position: -1, which is before the first element in the collection.
virtual bool IsValid() const
Current position is inside the collection (not -1 or past the end)
CBasePolyEnumerator(poly p=NULL)
This enumerator is an empty polynomial by default.
virtual bool MoveNext()
Advances the position to the next term of the polynomial. returns true if the position marker was suc...
virtual void Reset()
Sets the position marker to the leading term.
virtual bool MoveNext()
Advances the enumerator to the next element of the collection. returns true if the enumerator was suc...
virtual IPolyCoeffsEnumerator::reference Current()
Gets the current element in the collection (read and write).
virtual bool MoveNext()=0
Advances the enumerator to the next element of the collection. returns true if the enumerator was suc...
virtual bool IsValid() const =0
Current position is inside the collection (not -1 or past the end)
IPolyCoeffsEnumerator & m_global_enumerator
iterates the input polynomial
static const spolyrec m_prevposition_struct
tag for "-1" position
IEnumerator< number > IPolyCoeffsEnumerator
This is the interface we use in coeffs.h for ClearDenominators and ClearContent.
CRecursivePolyCoeffsEnumerator(IPolyCoeffsEnumerator &itr)
NOTE: carefull: don't destruct the input enumerator before doing it with this one....
static poly convert(const number &n)
static number & pGetCoeff(poly p)
return an alias to the leading coefficient of p assumes that p != NULL NOTE: not copy
poly m_poly
essentially immutable original iterable object
go into polynomials over an alg. extension recursively