21 using namespace basis;
26 letter::letter(
int type,
int start_after)
32 : _type(to_copy._type),
33 _ready_time(new
time_stamp(*to_copy._ready_time))
50 if (
this == &to_copy)
return *
this;
51 _type = to_copy._type;
52 *_ready_time = *to_copy._ready_time;
A virtual base class for pieces of "mail". Used by the mailbox object.
bool ready_to_send()
returns true if this letter is ready to
virtual ~letter()
derived classes should also implement this.
letter(int type=0, int start_after=0)
constructs a letter with the "type" and initial pause of "start_after".
void set_ready_time(int start_after)
resets the time when this letter is ready to be sent.
letter & operator=(const letter &to_copy)
assignment operator for base object.
Represents a point in time relative to the operating system startup time.
The guards collection helps in testing preconditions and reporting errors.
void WHACK(contents *&ptr)
deletion with clearing of the pointer.