A pair of 2 numbers, the base class for wpos and wsze. More...
#include <position.h>
Public Member Functions | |
wpair (int v=0) | |
Set BOTH members to v | |
wpair (int a, int b) | |
wpair (const wpair &Rhs) | |
bool | operator== (const wpair &Rhs) const |
bool | operator!= (const wpair &Rhs) const |
bool | operator> (const wpair &Rhs) const |
bool | operator< (const wpair &Rhs) const |
bool | operator>= (const wpair &Rhs) const |
bool | operator<= (const wpair &Rhs) const |
wpair | between (const wpair &Min, const wpair &Max) const |
a copy of this clamped between Min and Max | |
Static Public Member Functions | |
static wpair | min (const wpair &Lhs, const wpair &Rhs) |
static wpair | max (const wpair &Lhs, const wpair &Rhs) |
Protected Member Functions | |
wpair & | operator= (const wpair &Rhs) |
wpair & | operator+= (const wpair &Rhs) |
wpair & | operator-= (const wpair &Rhs) |
wpair & | operator*= (const wpair &Rhs) |
wpair & | operator/= (const wpair &Rhs) |
wpair | operator+ (const wpair &Rhs) const |
wpair | operator- (const wpair &Rhs) const |
wpair | operator* (const wpair &Rhs) const |
wpair | operator/ (const wpair &Rhs) const |
Protected Attributes | |
int | A |
int | B |
Friends | |
std::ostream & | operator<< (std::ostream &str, const wpair &obj) |
A pair of 2 numbers, the base class for wpos and wsze.