My Project
|
Base polynomial enumerator for simple iteration over terms of polynomials. More...
#include <PolyEnumerator.h>
Public Member Functions | |
virtual bool | IsValid () const |
Current position is inside the collection (not -1 or past the end) More... | |
void | Reset (poly p) |
Reset this polynomial Enumerator with a different input polynomial. More... | |
CBasePolyEnumerator (poly p=NULL) | |
This enumerator is an empty polynomial by default. More... | |
virtual void | Reset () |
Sets the position marker to the leading term. More... | |
virtual bool | MoveNext () |
Advances the position to the next term of the polynomial. returns true if the position marker was successfully advanced to the next term which can be used; false if the position marker has passed the end of the polynomial. More... | |
virtual bool | MoveNext ()=0 |
Advances the enumerator to the next element of the collection. returns true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. More... | |
virtual void | Reset ()=0 |
Sets the enumerator to its initial position: -1, which is before the first element in the collection. More... | |
virtual bool | IsValid () const =0 |
Current position is inside the collection (not -1 or past the end) More... | |
Protected Attributes | |
poly | m_position |
current position in the iterable object More... | |
Private Attributes | |
poly | m_poly |
essentially immutable original iterable object More... | |
Static Private Attributes | |
static const spolyrec | m_prevposition_struct = {} |
tag for "-1" position More... | |
Friends | |
template<class T > | |
class | CRecursivePolyCoeffsEnumerator |
Additional Inherited Members | |
Protected Member Functions inherited from IBaseEnumerator | |
IBaseEnumerator () | |
~IBaseEnumerator () | |
Base polynomial enumerator for simple iteration over terms of polynomials.
Note that the first element desn't exist directly after Reset() call.
The class doesn't inherit from IAccessor and thus doesn't override Current().
Definition at line 33 of file PolyEnumerator.h.
|
inline |
This enumerator is an empty polynomial by default.
Definition at line 62 of file PolyEnumerator.h.
|
inlinevirtual |
Current position is inside the collection (not -1 or past the end)
Implements IBaseEnumerator.
Definition at line 46 of file PolyEnumerator.h.
|
inlinevirtual |
Advances the position to the next term of the polynomial. returns true if the position marker was successfully advanced to the next term which can be used; false if the position marker has passed the end of the polynomial.
Implements IBaseEnumerator.
Definition at line 81 of file PolyEnumerator.h.
|
inlinevirtual |
Sets the position marker to the leading term.
Implements IBaseEnumerator.
Definition at line 69 of file PolyEnumerator.h.
|
inline |
Reset this polynomial Enumerator with a different input polynomial.
Definition at line 54 of file PolyEnumerator.h.
|
friend |
Definition at line 36 of file PolyEnumerator.h.
|
private |
essentially immutable original iterable object
Definition at line 38 of file PolyEnumerator.h.
|
protected |
current position in the iterable object
Definition at line 43 of file PolyEnumerator.h.
tag for "-1" position
Definition at line 40 of file PolyEnumerator.h.