#include <mapsetlib.h>
Public Member Functions | |
Coords () | |
Coords (const T c[_DIM]) | |
Coords (const T &v) | |
bool | operator< (const Coords &v) const |
Operator < . | |
bool | operator<= (const Coords &v) const |
Operator <= . | |
bool | operator== (const Coords &v) const |
Operator == . | |
T & | operator[] (int i) |
Operator [] which returns references to given element. | |
T | operator() (int i) const |
Const operator [] which returns e value of given element. | |
bool | next (Coords< _DIM, T > wp, Coords< _DIM, T > wk) |
Function iterating through all Coords struct that satisfy wp <= ... < wk. | |
Public Attributes | |
T | c [_DIM] |
bool Coords< _DIM, T >::operator< | ( | const Coords< _DIM, T > & | v | ) | const [inline] |
Operator < .
bool Coords< _DIM, T >::operator<= | ( | const Coords< _DIM, T > & | v | ) | const [inline] |
Operator <= .
bool Coords< _DIM, T >::operator== | ( | const Coords< _DIM, T > & | v | ) | const [inline] |
Operator == .
T& Coords< _DIM, T >::operator[] | ( | int | i | ) | [inline] |
Operator [] which returns references to given element.
T Coords< _DIM, T >::operator() | ( | int | i | ) | const [inline] |
Const operator [] which returns e value of given element.
bool Coords< _DIM, T >::next | ( | Coords< _DIM, T > | wp, | |
Coords< _DIM, T > | wk | |||
) | [inline] |
Function iterating through all Coords struct that satisfy wp <= ... < wk.
Next coordinates are chosen up to constraints wp <= 'next set coordinate' < wk. If last change occured function returns false, otherwise true.