library of assembled shared sources |
http://lass.cocamware.com |
#include <xy.h>
Public Types | |
enum | { dimension = 2 } |
Public Member Functions | |
XY () | |
intializes iterator to x axis. | |
XY (char iAxis) | |
initializes iterator to an axis by character: 'x' or 'y'. | |
XY (int iValue) | |
initializes iterator to an axis by number. | |
XY (const std::string &iAxis) | |
initializes iterator to an axis by character: "x" or "y". | |
const char | axis () const |
return axis by character: "x" or "y". | |
operator int () const | |
convert axis to integer. | |
XY & | operator++ () |
XY & | operator-- () |
XY | operator++ (int) |
XY | operator-- (int) |
XY & | operator+= (int iOffset) |
XY & | operator-= (int iOffset) |
Private Types | |
typedef num::Modulo< 2, int > | TValue |
Private Member Functions | |
void | reset (char iAxis) |
Private Attributes | |
TValue | value_ |
Friends | |
LASS_DLL bool LASS_CALL | operator== (const XY &iA, const XY &iB) |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator== (const XY &iA, char iB) |
bool | operator== (char iA, const XY &iB) |
bool | operator== (const XY &iA, const std::string &iB) |
bool | operator== (const std::string &iA, const XY &iB) |
bool | operator!= (const XY &iA, const XY &iB) |
bool | operator!= (const XY &iA, char iB) |
bool | operator!= (char iA, const XY &iB) |
bool | operator!= (const XY &iA, const std::string &iB) |
bool | operator!= (const std::string &iA, const XY &iB) |
XY | operator+ (const XY &iA, int iOffset) |
XY | operator- (const XY &iA, int iOffset) |
template<typename Char , typename Traits > | |
std::basic_ostream< Char, Traits > & | operator<< (std::basic_ostream< Char, Traits > &ioS, const XY &iXY) |
template<typename Char , typename Traits > | |
std::basic_ostream< Char, Traits > & | operator<< (std::basic_ostream< Char, Traits > &ioS, const XYZ &iXYZ) |
template<typename Char , typename Traits > | |
std::basic_ostream< Char, Traits > & | operator<< (std::basic_ostream< Char, Traits > &ioS, const XYZW &iXYZW) |
Definition at line 61 of file xy.h.
typedef num::Modulo<2, int> lass::prim::XY::TValue [private] |
lass::prim::XY::XY | ( | char | iAxis | ) |
lass::prim::XY::XY | ( | int | iValue | ) | [explicit] |
lass::prim::XY::XY | ( | const std::string & | iAxis | ) | [explicit] |
initializes iterator to an axis by character: "x" or "y".
Definition at line 84 of file xy.cpp.
References LASS_THROW, and reset().
const char lass::prim::XY::axis | ( | ) | const |
return axis by character: "x" or "y".
Definition at line 97 of file xy.cpp.
References dimension, LASS_ASSERT, and value_.
Referenced by operator==().
lass::prim::XY::operator int | ( | ) | const [inline] |
XY & lass::prim::XY::operator++ | ( | ) |
XY & lass::prim::XY::operator-- | ( | ) |
XY & lass::prim::XY::operator+= | ( | int | iOffset | ) |
XY & lass::prim::XY::operator-= | ( | int | iOffset | ) |
void lass::prim::XY::reset | ( | char | iAxis | ) | [inline, private] |
bool operator== | ( | const XY & | iA, | |
char | iB | |||
) | [related] |
bool operator== | ( | char | iA, | |
const XY & | iB | |||
) | [related] |
bool operator== | ( | const XY & | iA, | |
const std::string & | iB | |||
) | [related] |
bool operator== | ( | const std::string & | iA, | |
const XY & | iB | |||
) | [related] |
bool operator!= | ( | const XY & | iA, | |
const std::string & | iB | |||
) | [related] |
bool operator!= | ( | const std::string & | iA, | |
const XY & | iB | |||
) | [related] |
std::basic_ostream< Char, Traits > & operator<< | ( | std::basic_ostream< Char, Traits > & | ioS, | |
const XY & | iXY | |||
) | [related] |
std::basic_ostream< Char, Traits > & operator<< | ( | std::basic_ostream< Char, Traits > & | ioS, | |
const XYZ & | iXYZ | |||
) | [related] |
std::basic_ostream< Char, Traits > & operator<< | ( | std::basic_ostream< Char, Traits > & | ioS, | |
const XYZW & | iXYZW | |||
) | [related] |
TValue lass::prim::XY::value_ [private] |
Definition at line 93 of file xy.h.
Referenced by axis(), operator++(), operator+=(), operator--(), operator-=(), and reset().
Generated on Mon Nov 10 14:22:14 2008 for Library of Assembled Shared Sources by 1.5.7.1 |