StringRegion
s to step from the initial StringRegion to the current one.
More...
#include <OrientedIndex.h>
Public Member Functions | |
OrientedIndex (int ii=0) | |
Standard constructor taking the start index as argument. | |
OrientedIndex (const OrientedIndex &OI) | |
Copu-constructor. | |
void | operator= (const OrientedIndex &OI) |
Assignment operator. | |
OrientedIndex & | operator= (int ii) |
Assignment operator for giving an index. | |
int | operator++ () |
Increase or decrease index depending on Oriented. | |
int | operator++ (int) |
Increase or decrease index depending on Oriented. | |
bool | operator== (int ii) |
Test for equality. | |
bool | operator!= (int ii) const |
Test for inequality. | |
bool | operator< (int ii) const |
Test for ordering. | |
bool | operator<= (int ii) const |
Test for ordering. | |
bool | operator< (const OrientedIndex &OI) const |
Test for ordering. | |
bool | operator<= (const OrientedIndex &OI) const |
Test for ordering. | |
OrientedIndex | operator- () |
Negate the index. | |
int | idx () const |
Return the index. | |
operator int () const | |
Return the index. | |
Private Attributes | |
int | Idx |
The index. |
StringRegion
s to step from the initial StringRegion to the current one.
OrientedIndex is an helper class used to iterate the indices in a side-independent manner in order to allow for one generic implementation of the stepping algorithmic.
The OrientedIndex provides strait forward implementation of the different operators needed for iteration, like ++
, --
, >=
, =<
etc. that use the Oriented to access to the current side in the fragmentation.
Definition at line 33 of file OrientedIndex.h.