A simple pair of x/y coordinates. More...
#include <index.h>
Public Member Functions | |
GenericIndex (const NumericType &x=0, const NumericType &y=0) | |
bool | operator!= (const GenericIndex &other) const |
bool | operator< (const GenericIndex &other) const |
less than operator so object can be used in sets | |
bool | operator<= (const GenericIndex &other) const |
bool | operator== (const GenericIndex &other) const |
comparison operator that requires equal x and y | |
bool | operator> (const GenericIndex &other) const |
bool | operator>= (const GenericIndex &other) const |
std::string | toString () const |
String representation of this object. | |
Public Attributes | |
NumericType | x |
NumericType | y |
A simple pair of x/y coordinates.
nav_grid::GenericIndex< NumericType >::GenericIndex | ( | const NumericType & | x = 0 , |
const NumericType & | y = 0 |
||
) | [inline, explicit] |
bool nav_grid::GenericIndex< NumericType >::operator!= | ( | const GenericIndex< NumericType > & | other | ) | const [inline] |
bool nav_grid::GenericIndex< NumericType >::operator< | ( | const GenericIndex< NumericType > & | other | ) | const [inline] |
bool nav_grid::GenericIndex< NumericType >::operator<= | ( | const GenericIndex< NumericType > & | other | ) | const [inline] |
bool nav_grid::GenericIndex< NumericType >::operator== | ( | const GenericIndex< NumericType > & | other | ) | const [inline] |
bool nav_grid::GenericIndex< NumericType >::operator> | ( | const GenericIndex< NumericType > & | other | ) | const [inline] |
bool nav_grid::GenericIndex< NumericType >::operator>= | ( | const GenericIndex< NumericType > & | other | ) | const [inline] |
std::string nav_grid::GenericIndex< NumericType >::toString | ( | ) | const [inline] |
NumericType nav_grid::GenericIndex< NumericType >::x |
NumericType nav_grid::GenericIndex< NumericType >::y |