Represents a testing room, which has a group of letters allocated to it (where letters are first letters of last names).
More...
#include <room.h>
|
| void | clear () |
| | Destructor/assignment operator clear helper function. More...
|
| |
| void | copy (const Room &other) |
| | Cctor/assignment operator copy helper function. More...
|
| |
Represents a testing room, which has a group of letters allocated to it (where letters are first letters of last names).
Room Default Constructor.
Room Default Constructor Creates a blank (uninitialized) room.
Creates a blank (uninitialized) room
| Room::Room |
( |
const Room & |
other | ) |
|
Room copy constructor.
- Parameters
-
| other | The Room to copy into this room. |
| Room::Room |
( |
const string & |
init_name, |
|
|
int |
init_capacity |
|
) |
| |
Main Room constructor.
Main Room constructor Creates an empty room with the given name and capacity.
Creates an empty room with the given name and capacity
- Parameters
-
| init_name | The name to create this Room with |
| init_capacity | The size of this Room |
| Room & Room::operator= |
( |
const Room & |
other | ) |
|
Room assignment operator.
- Parameters
-
| other | The Room to make a copy of |
- Returns
- A reference to the copied Room
| void Room::addLetter |
( |
const Letter & |
L | ) |
|
Allocates a letter group to this room.
- Parameters
-
| int Room::spaceRemaining |
( |
| ) |
|
Returns the number of empty seats remaining in the room after current allocations.
- Returns
- the number of empty seats remaining in the room after current allocations.
Outputs the room to cout.
Destructor/assignment operator clear helper function.
| void Room::copy |
( |
const Room & |
other | ) |
|
|
private |
Cctor/assignment operator copy helper function.
The capacity of the room.
The number of students currently allocated.
The maximum size of the letters array (26)
An array of Letters currently allocated.
The number of valid Letters in the Letters array.
The documentation for this class was generated from the following files: