#include <CyclicIndex.h>
Public Member Functions | |
Constructors etc. | |
| CyclicIndex (const int n) | |
| Constructor. Initialize index to zero. | |
| CyclicIndex (const CyclicIndex &other) | |
| Copy constructor. | |
| CyclicIndex & | operator= (const CyclicIndex &other) |
| Assignment operator. | |
| ~CyclicIndex () | |
| Trivial destructor. | |
Accesors. | |
| int | operator() () const |
| Return the index. | |
Manipulators. | |
| void | set (int i) |
| Set the index to i mod N. | |
Friends | |
| CyclicIndex & | operator++ (CyclicIndex &ci) |
| Increment the index. | |
| CyclicIndex & | operator-- (CyclicIndex &ci) |
| Decrement the index. | |
1.4.7