An iterator for simple, monotonically-increasing IDs.
More...
#include <SequentialAssignedIds.h>
|
| Iterator (const Iterator< IsForward > &other)=default |
|
Iterator< IsForward > & | operator= (const Iterator< IsForward > &other)=default |
|
Iterator< IsForward > | operator++ () |
|
Iterator< IsForward > & | operator++ (int) |
|
Iterator< IsForward > | operator-- () |
|
Iterator< IsForward > & | operator-- (int) |
|
Iterator & | operator+= (std::size_t count) |
|
Iterator & | operator-= (std::size_t count) |
|
Iterator< IsForward > | operator+ (std::size_t delta) const |
|
Iterator< IsForward > | operator- (std::size_t delta) const |
|
const value_type & | operator* () const |
|
const value_type & | operator-> () const |
|
value_type | index () const |
| Return the index of the ID within this AssignedIds object. More...
|
|
bool | operator== (const Iterator &other) const |
|
bool | operator!= (const Iterator &other) const |
|
|
static constexpr IdType | Invalid = ~0ull |
|
|
value_type | m_value |
|
IdRange | m_range |
|
|
class | SequentialAssignedIds |
|
template<Forwardness IsForward>
struct smtk::markup::SequentialAssignedIds::Iterator< IsForward >
An iterator for simple, monotonically-increasing IDs.
◆ index()
template<Forwardness IsForward>
Return the index of the ID within this AssignedIds object.
The index is the ID minus range()[0]. For example, if a 10×10×10 image has point IDs 100 through 1100, the iterator's value (the result of dereferencing the iterator using the '*' operator) might be 101 while the index would be 1. This is useful for translating from IDs to (i,j,k)-indices in the image.
The documentation for this struct was generated from the following file: