#include <Roulette.h>
Public Member Functions | |
| Pocket () | |
| Default constructor. | |
| Pocket (int v) | |
| Num constructor. | |
| Pocket (int v, Decimal w) | |
| Complete constructor. | |
| Pocket (const Pocket &v) | |
| Copy constructor. | |
| const Pocket & | operator= (const Pocket &v) |
| Assignment operator =. | |
| string | print () |
| Print function. | |
Public Attributes | |
| int | value |
| Represents the value of the Pocket. | |
| Decimal | weight |
| Represents the weight of the Pocket. | |
| MipBaselib::Pocket::Pocket | ( | ) |
Default constructor.
Sets value = 0, weight = 0.
| MipBaselib::Pocket::Pocket | ( | int | v | ) |
Num constructor.
| v | value to be set. Sets value = v, weight = 0. |
| MipBaselib::Pocket::Pocket | ( | int | v, | |
| Decimal | w | |||
| ) |
Complete constructor.
| v | value to be set. | |
| w | weight to be set. Sets value = n, weight = w. |
| MipBaselib::Pocket::Pocket | ( | const Pocket & | v | ) |
Copy constructor.
| v | value to be set. |
Assignment operator =.
| v | value to be set. |
| string MipBaselib::Pocket::print | ( | ) |
Print function.
Represents the value of the Pocket.
Represents the weight of the Pocket.
1.5.6