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