Used to have circular indexing without having to repeat code of the type ab. More...
#include <laser3d_circularvector.h>
Data Structures | |
| class | CircularIndex |
| the instantiation and can be used to immediately set the length of the circular indexing. More... | |
| class | GetIndex |
| returns the present value of the circular index More... | |
| class | GetSize |
| returns the present value of the circular index More... | |
| class | SetLength |
| used to set the length of the circular index More... | |
| class | Sum |
| adds a unit to the present index or returns it to zero if index exceeds length-1. More... | |
Public Member Functions | |
| CircularIndex (int vectorlength) | |
| ~CircularIndex () | |
| int | Sum () |
| int | GetIndex () |
| void | SetLength (int vectorlength) |
| int | GetSize () |
Private Attributes | |
| int | vectorindex |
| int | vectorsize |
Used to have circular indexing without having to repeat code of the type ab.
| CircularIndex::~CircularIndex | ( | ) | [inline] |
int CircularIndex::vectorindex [private] |
Referenced by CircularIndex(), GetIndex(), and Sum().
int CircularIndex::vectorsize [private] |
Referenced by CircularIndex(), GetSize(), SetLength(), and Sum().
1.6.3