|
Ginger 1.1.5; VERSION ${PROJECT_VERSION}
|
Robin Hood iterator for cycle iteration. More...
#include <robin.hpp>
Public Member Functions | |
| Robin (T num_parts) | |
| Construct a new Robin cycle. | |
| auto | exclude (T from_part) const -> detail::RobinIterableWrapper< T > |
| Get an iterable that excludes a specific element. | |
Public Attributes | |
| std::vector< detail::RobinSlNode< T > > | cycle |
Robin Hood iterator for cycle iteration.
A data structure that creates a circular linked list allowing iteration over all elements except a specified one (the "exclude" operation).
| T | The type of indices in the cycle |
|
inlineexplicit |
Construct a new Robin cycle.
Creates a circular linked list containing all indices from 0 to num_parts-1.
| num_parts | The number of elements in the cycle |
|
inline |
Get an iterable that excludes a specific element.
Returns an iterable that allows iterating over all elements in the cycle except the one at the specified index.
| from_part | The index to exclude from iteration |
| std::vector<detail::RobinSlNode<T> > fun::Robin< T >::cycle |