Construct version 5.4.4
An agent based modeling framework
|
Parent class for Graph's iterators. More...
Public Member Functions | |
typeless_graph_iterator (unsigned int row=0, unsigned int col=0, void *ptr=NULL) | |
unsigned int | row (void) const noexcept |
The row index this iterator is pointing to. | |
unsigned int | col (void) const noexcept |
The column index this iterator is pointing to. | |
virtual unsigned int | index () const noexcept |
Depending on implementation, returns either row or col. More... | |
virtual unsigned int | max () const noexcept |
Returns the maximum value that Construct can return. More... | |
virtual const typeless_graph_iterator & | operator++ (void) const |
Depending on implementation, increments the iterator to point to the next relevant element. More... | |
Public Attributes | |
void * | _ptr |
unsigned int | _row |
unsigned int | _col |
Parent class for Graph's iterators.
By having Graph's iterators inheiret from this parent class, we can compare and operate different types of iterators. This allows for the creation of an end iterator without allocating the associated pointers. It also allows for iterators to be added a data structure for alignment such as in graph_utils::it_align.
|
virtualnoexcept |
Depending on implementation, returns either row or col.
Reimplemented in graph_utils::row_graph_iterator< link_type >, and graph_utils::col_graph_iterator< link_type >.
|
virtualnoexcept |
Returns the maximum value that Construct can return.
Reimplemented in graph_utils::row_graph_iterator< link_type >, and graph_utils::col_graph_iterator< link_type >.
|
virtual |
Depending on implementation, increments the iterator to point to the next relevant element.
Reimplemented in graph_utils::const_full_row_iterator< link_type >, graph_utils::const_sparse_row_iterator< link_type >, graph_utils::const_full_col_iterator< link_type >, graph_utils::const_sparse_col_iterator< link_type >, graph_utils::const_row_begin_iterator< link_type >, and graph_utils::const_col_begin_iterator< link_type >.
|
mutable |
summary>
|
mutable |
summary>
|
mutable |
summary>