![]() |
My Project
|
This is a polynomial enumerator for simple iteration over coefficients of polynomials. More...
#include <PolyEnumerator.h>
Public Member Functions | |
| CPolyCoeffsEnumerator (poly p) | |
| virtual IPolyCoeffsEnumerator::reference | Current () |
| Gets the current element in the collection (read and write). More... | |
| virtual IPolyCoeffsEnumerator::const_reference | Current () const |
| Gets the current element in the collection (read only). More... | |
Public Member Functions inherited from CBasePolyEnumerator | |
| 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... | |
| virtual reference | Current ()=0 |
| Gets the current element in the collection (read and write). More... | |
| virtual const_reference | Current () const =0 |
| Gets the current element in the collection (read only). More... | |
Additional Inherited Members | |
Public Types inherited from IAccessor< T > | |
| typedef T | value_type |
| typedef value_type & | reference |
| typedef const value_type & | const_reference |
Protected Member Functions inherited from IBaseEnumerator | |
| IBaseEnumerator () | |
| ~IBaseEnumerator () | |
Protected Member Functions inherited from IAccessor< T > | |
| IAccessor () | |
| ~IAccessor () | |
Protected Attributes inherited from CBasePolyEnumerator | |
| poly | m_position |
| current position in the iterable object More... | |
This is a polynomial enumerator for simple iteration over coefficients of polynomials.
It is required to inherit this class from IEnumerator<number> for its use in coeffs and implement IAccessor<number> interface.
Note also the virtual multiple inheritance due to the diamond problem of inheriting both CBasePolyEnumerator and IEnumerator<T> from IBaseEnumerator.
Definition at line 129 of file PolyEnumerator.h.
|
inline |
Definition at line 132 of file PolyEnumerator.h.
|
inlinevirtual |
Gets the current element in the collection (read and write).
Implements IAccessor< T >.
Definition at line 135 of file PolyEnumerator.h.
|
inlinevirtual |
Gets the current element in the collection (read only).
Implements IAccessor< T >.
Definition at line 142 of file PolyEnumerator.h.