|
Macaulay2 Engine
|
Bidirectional forward iterator over the Bags stored in a MonomialIdeal. More...
#include <monideal.hpp>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | difference_type = std::ptrdiff_t |
| using | value_type = Bag |
| using | pointer = Bag* |
| using | reference = Bag& |
Public Member Functions | |
| Iterator (const MonomialIdeal &MI) | |
| Iterator (const MonomialIdeal &MI, int) | |
| Iterator (const MonomialIdeal &MI, Nmi_node *p) | |
| reference | operator* () const |
| pointer | operator-> () |
| Iterator & | operator++ () |
| Iterator & | operator-- () |
| Iterator | operator++ (int) |
| Iterator | operator-- (int) |
Private Attributes | |
| const MonomialIdeal & | mMonomialTable |
| Nmi_node * | mPointer |
Friends | |
| bool | operator== (const Iterator &a, const Iterator &b) |
| bool | operator!= (const Iterator &a, const Iterator &b) |
Bidirectional forward iterator over the Bags stored in a MonomialIdeal.
Walks the Nmi_node tree in lex order via MonomialIdeal::next / prev. operator* returns the Bag& at the current leaf; operator-> returns the underlying pointer. Equality is by raw node-pointer comparison, so the end iterator is just the one with mPointer == nullptr.
Definition at line 230 of file monideal.hpp.