library of assembled shared sources |
http://lass.cocamware.com |
#include <xyz.h>
Public Types | |
enum | { dimension = 3 } |
Public Member Functions | |
XYZ () | |
intializes iterator to x axis. | |
XYZ (char iAxis) | |
initializes iterator to an axis by character: 'x', 'y' or 'z'. | |
XYZ (int iValue) | |
initializes iterator to an axis by number. | |
XYZ (const std::string &iAxis) | |
initializes iterator to an axis by character: "x", "y" or "z". | |
const char | axis () const |
return axis by character: "x", "y" or "z". | |
operator int () const | |
convert axis to integer. | |
XYZ & | operator++ () |
XYZ & | operator-- () |
XYZ | operator++ (int) |
XYZ | operator-- (int) |
XYZ & | operator+= (int iOffset) |
XYZ & | operator-= (int iOffset) |
Private Types | |
typedef num::Modulo< 3, int > | TValue |
Private Member Functions | |
void | reset (char iAxis) |
Private Attributes | |
TValue | value_ |
Friends | |
LASS_DLL bool LASS_CALL | operator== (const XYZ &iA, const XYZ &iB) |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator== (const XYZ &iA, char iB) |
bool | operator== (char iA, const XYZ &iB) |
bool | operator== (const XYZ &iA, const std::string &iB) |
bool | operator== (const std::string &iA, const XYZ &iB) |
bool | operator!= (const XYZ &iA, const XYZ &iB) |
bool | operator!= (const XYZ &iA, char iB) |
bool | operator!= (char iA, const XYZ &iB) |
bool | operator!= (const XYZ &iA, const std::string &iB) |
bool | operator!= (const std::string &iA, const XYZ &iB) |
XYZ | operator+ (const XYZ &iA, int iOffset) |
XYZ | operator- (const XYZ &iA, int iOffset) |
Definition at line 61 of file xyz.h.
typedef num::Modulo<3, int> lass::prim::XYZ::TValue [private] |
lass::prim::XYZ::XYZ | ( | char | iAxis | ) |
lass::prim::XYZ::XYZ | ( | int | iValue | ) | [explicit] |
lass::prim::XYZ::XYZ | ( | const std::string & | iAxis | ) | [explicit] |
initializes iterator to an axis by character: "x", "y" or "z".
Definition at line 83 of file xyz.cpp.
References LASS_THROW, and reset().
const char lass::prim::XYZ::axis | ( | ) | const |
return axis by character: "x", "y" or "z".
Definition at line 96 of file xyz.cpp.
References LASS_ASSERT, and value_.
Referenced by operator==().
lass::prim::XYZ::operator int | ( | ) | const [inline] |
XYZ & lass::prim::XYZ::operator++ | ( | ) |
XYZ & lass::prim::XYZ::operator-- | ( | ) |
XYZ & lass::prim::XYZ::operator+= | ( | int | iOffset | ) |
XYZ & lass::prim::XYZ::operator-= | ( | int | iOffset | ) |
void lass::prim::XYZ::reset | ( | char | iAxis | ) | [inline, private] |
bool operator== | ( | const XYZ & | iA, | |
char | iB | |||
) | [related] |
bool operator== | ( | char | iA, | |
const XYZ & | iB | |||
) | [related] |
bool operator== | ( | const XYZ & | iA, | |
const std::string & | iB | |||
) | [related] |
bool operator== | ( | const std::string & | iA, | |
const XYZ & | iB | |||
) | [related] |
bool operator!= | ( | const XYZ & | iA, | |
const std::string & | iB | |||
) | [related] |
bool operator!= | ( | const std::string & | iA, | |
const XYZ & | iB | |||
) | [related] |
TValue lass::prim::XYZ::value_ [private] |
Definition at line 93 of file xyz.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 |