|
INET Framework for OMNeT++/OMNEST
|
Class generated from inet/clock/common/ClockEvent.msg:21 by opp_msgtool.
More...
#include <ClockEvent_m.h>
Public Member Functions | |
| virtual | ~ClockEvent_Base () |
| virtual ClockEvent_Base * | dup () const override |
| virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
| virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
| virtual const IClock * | getClock () const |
| virtual IClock * | getClockForUpdate () |
| virtual void | setClock (IClock *clock) |
| virtual bool | getRelative () const |
| virtual void | setRelative (bool relative) |
| virtual clocktime_t | getArrivalClockTime () const |
| virtual void | setArrivalClockTime (clocktime_t arrivalClockTime) |
| virtual OverdueClockEventHandlingMode | getOverdueClockEventHandlingMode () const |
| virtual void | setOverdueClockEventHandlingMode (OverdueClockEventHandlingMode overdueClockEventHandlingMode) |
Protected Member Functions | |
| bool | operator== (const ClockEvent_Base &)=delete |
| ClockEvent_Base (const char *name=nullptr, short kind=0) | |
| ClockEvent_Base (const ClockEvent_Base &other) | |
| ClockEvent_Base & | operator= (const ClockEvent_Base &other) |
Protected Attributes | |
| IClock * | clock = nullptr |
| bool | relative = false |
| clocktime_t | arrivalClockTime = -1 |
| OverdueClockEventHandlingMode | overdueClockEventHandlingMode = UNSPECIFIED |
Private Member Functions | |
| void | copy (const ClockEvent_Base &other) |
Class generated from inet/clock/common/ClockEvent.msg:21 by opp_msgtool.
message ClockEvent { @customize; IClock *clock; bool relative = false; clocktime_t arrivalClockTime = -1; OverdueClockEventHandlingMode overdueClockEventHandlingMode = UNSPECIFIED; }
ClockEvent_Base is only useful if it gets subclassed, and ClockEvent is derived from it. The minimum code to be written for ClockEvent is the following:
class INET_API ClockEvent : public ClockEvent_Base { private: void copy(const ClockEvent& other) { ... }
public:
ClockEvent(const char *name=nullptr, short kind=0) : ClockEvent_Base(name,kind) {}
ClockEvent(const ClockEvent& other) : ClockEvent_Base(other) {copy(other);}
ClockEvent& operator=(const ClockEvent& other) {if (this==&other) return *this; ClockEvent_Base::operator=(other); copy(other); return *this;}
virtual ClockEvent *dup() const override {return new ClockEvent(*this);}
// ADD CODE HERE to redefine and implement pure virtual functions from ClockEvent_Base
};
The following should go into a .cc (.cpp) file:
Register_Class(ClockEvent)
|
protected |
|
protected |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented in inet::GptpReqAnswerEvent, and inet::ClockEvent.
|
virtual |
Referenced by inet::ClockBase::handleClockEvent().
|
virtual |
|
inlinevirtual |
|
virtual |
|
virtual |
|
protected |
Referenced by inet::ClockEvent::operator=().
|
protecteddelete |
|
overridevirtual |
Reimplemented in inet::GptpReqAnswerEvent.
|
overridevirtual |
Reimplemented in inet::GptpReqAnswerEvent.
|
virtual |
Referenced by inet::ClockBase::scheduleClockEventAfter(), and inet::ClockBase::scheduleClockEventAt().
|
virtual |
|
virtual |
|
virtual |
Referenced by inet::ClockBase::scheduleClockEventAfter(), and inet::ClockBase::scheduleClockEventAt().
|
protected |
Referenced by inet::Register_Class().
|
protected |
Referenced by inet::Register_Class().
|
protected |
|
protected |