Stores information which is needed by the physical layer when sending a MacPkt. More...
#include <MacToPhyControlInfo.h>
Inherited by MacToUWBIRPhyControlInfo.
Public Member Functions | |
MacToPhyControlInfo (Signal *signal=0) | |
Initialize the MacToPhyControlInfo with the passed signal or null if signal is ommited. | |
virtual | ~MacToPhyControlInfo () |
Delete the signal if it is still in our ownership. | |
void | setSignal (Signal *s) |
Sets the signal of this MacToPhyControlInfo. | |
Signal * | retrieveSignal () |
Returns a pointer to the Signal of this ControlInfo. | |
Protected Attributes | |
Signal * | signal |
A pointer to the signal representing the transmission. |
Stores information which is needed by the physical layer when sending a MacPkt.
Definition at line 13 of file MacToPhyControlInfo.h.
MacToPhyControlInfo::MacToPhyControlInfo | ( | Signal * | signal = 0 |
) | [inline] |
Initialize the MacToPhyControlInfo with the passed signal or null if signal is ommited.
NOTE: Once a signal is passed to the MacToPhyControlInfo, MacToPhyControlInfo takes the ownership of the Signal.
Definition at line 26 of file MacToPhyControlInfo.h.
: signal(signal) {}
Signal* MacToPhyControlInfo::retrieveSignal | ( | ) | [inline] |
Returns a pointer to the Signal of this ControlInfo.
NOTE: The ownership of the Signal is passed together with the Signal itself. This means the caller of this method is responsible for deletion of the Signal. MacToPhyControlInfo also loses its pointer to the Signal when this Method is called so following calls of this method will return null!
Definition at line 60 of file MacToPhyControlInfo.h.
References signal.
Referenced by PhyLayerUWBIR::encapsMsg().
void MacToPhyControlInfo::setSignal | ( | Signal * | s | ) | [inline] |
Sets the signal of this MacToPhyControlInfo.
NOTE: Once a signal is passed to the MacToPhyControlInfo, MacToPhyControlInfo takes the ownership of the Signal.
Definition at line 43 of file MacToPhyControlInfo.h.
References signal.