Public Member Functions | |
Dimension (int w, int h) | |
Dimension () | |
Dimension (const Dimension &rhs) | |
Dimension & | operator= (const Dimension &rhs) |
bool | operator== (const Dimension &rhs) |
void | swap (Dimension &rhs) throw () |
~Dimension () | |
Public Attributes | |
int | width |
int | height |
|
Creates a new Rectangle with specified parameters. |
|
Default constructor. Creates an empty dimension. |
|
Copy constructor. Creates a new Dimension based on an existing. |
|
Destructor. |
|
Assignment operator. Assign one Dimension to another. |
|
Compare two dimensions. |
|
Swaps two dimensions. |