#include <coordinates.h>
Public Member Functions | |
_Coordinate () | |
_Coordinate (int x) | |
_Coordinate (int x, int y) | |
_Coordinate (int x, int y, int z) | |
_Coordinate (int x, int y, int z, int a) | |
_Coordinate (int x, int y, int z, int a, int b) | |
_Coordinate (int x, int y, int z, int a, int b, int c) | |
bool | has (int val) const |
void | operator= (int val) |
void | operator= (const _Coordinate< D > &val) |
_Coordinate< D > | operator+ (const _Coordinate< D > &other) const |
_Coordinate< D > & | operator+= (const _Coordinate< D > &other) |
_Coordinate< D > | operator- (const _Coordinate< D > &other) const |
_Coordinate< D > & | operator-= (const _Coordinate< D > &other) |
bool | operator== (const _Coordinate< D > &other) const |
bool | operator!= (const _Coordinate< D > &other) const |
int & | operator[] (int idx) |
int | operator[] (int idx) const |
void | print () |
template<int SEL> | |
_Coordinate< SEL > | select (const Select< SEL > &sel) |
void | set (const _Coordinate< D > &s) |
template<int BROL> | |
void | set (const _Coordinate< BROL > &) |
Protected Attributes | |
int | coordinate [D] |
Definition at line 47 of file coordinates.h.
_Coordinate< D >::_Coordinate | ( | ) | [inline] |
Definition at line 56 of file coordinates.h.
_Coordinate< D >::_Coordinate | ( | int | x | ) | [inline] |
Definition at line 57 of file coordinates.h.
_Coordinate< D >::_Coordinate | ( | int | x, | |
int | y | |||
) | [inline] |
Definition at line 61 of file coordinates.h.
_Coordinate< D >::_Coordinate | ( | int | x, | |
int | y, | |||
int | z | |||
) | [inline] |
Definition at line 67 of file coordinates.h.
_Coordinate< D >::_Coordinate | ( | int | x, | |
int | y, | |||
int | z, | |||
int | a | |||
) | [inline] |
Definition at line 74 of file coordinates.h.
_Coordinate< D >::_Coordinate | ( | int | x, | |
int | y, | |||
int | z, | |||
int | a, | |||
int | b | |||
) | [inline] |
Definition at line 82 of file coordinates.h.
_Coordinate< D >::_Coordinate | ( | int | x, | |
int | y, | |||
int | z, | |||
int | a, | |||
int | b, | |||
int | c | |||
) | [inline] |
Definition at line 91 of file coordinates.h.
bool _Coordinate< D >::has | ( | int | val | ) | const [inline] |
Definition at line 101 of file coordinates.h.
bool _Coordinate< D >::operator!= | ( | const _Coordinate< D > & | other | ) | const [inline] |
Definition at line 143 of file coordinates.h.
_Coordinate<D> _Coordinate< D >::operator+ | ( | const _Coordinate< D > & | other | ) | const [inline] |
Definition at line 115 of file coordinates.h.
_Coordinate<D>& _Coordinate< D >::operator+= | ( | const _Coordinate< D > & | other | ) | [inline] |
Definition at line 121 of file coordinates.h.
_Coordinate<D> _Coordinate< D >::operator- | ( | const _Coordinate< D > & | other | ) | const [inline] |
Definition at line 126 of file coordinates.h.
_Coordinate<D>& _Coordinate< D >::operator-= | ( | const _Coordinate< D > & | other | ) | [inline] |
Definition at line 132 of file coordinates.h.
void _Coordinate< D >::operator= | ( | const _Coordinate< D > & | val | ) | [inline] |
Definition at line 111 of file coordinates.h.
void _Coordinate< D >::operator= | ( | int | val | ) | [inline] |
bool _Coordinate< D >::operator== | ( | const _Coordinate< D > & | other | ) | const [inline] |
Definition at line 137 of file coordinates.h.
int _Coordinate< D >::operator[] | ( | int | idx | ) | const [inline] |
Definition at line 153 of file coordinates.h.
int& _Coordinate< D >::operator[] | ( | int | idx | ) | [inline] |
Definition at line 149 of file coordinates.h.
void _Coordinate< D >::print | ( | ) | [inline] |
Definition at line 157 of file coordinates.h.
_Coordinate<SEL> _Coordinate< D >::select | ( | const Select< SEL > & | sel | ) | [inline] |
void _Coordinate< D >::set | ( | const _Coordinate< BROL > & | ) | [inline] |
Definition at line 168 of file coordinates.h.
void _Coordinate< D >::set | ( | const _Coordinate< D > & | s | ) | [inline] |
Definition at line 163 of file coordinates.h.
int _Coordinate< D >::coordinate[D] [protected] |
Definition at line 53 of file coordinates.h.