added DoDispose to lte-phy and lte-spectrum-phy

This commit is contained in:
Nicola Baldo
2011-03-29 18:28:55 +02:00
parent 44829ee986
commit e320d42a37
5 changed files with 16 additions and 1 deletions

View File

@@ -120,6 +120,13 @@ LteEnbPhy::~LteEnbPhy ()
{
}
void
LteEnbPhy::DoDispose ()
{
NS_LOG_FUNCTION (this);
LtePhy::DoDispose ();
}
void
LteEnbPhy::SetLteEnbPhySapUser (LteEnbPhySapUser* s)
{

View File

@@ -52,6 +52,7 @@ public:
virtual ~LteEnbPhy ();
static TypeId GetTypeId (void);
virtual void DoDispose (void);
/**

View File

@@ -87,6 +87,7 @@ LtePhy::DoDispose ()
m_packetBurstQueue.erase (m_packetBurstQueue.begin (), m_packetBurstQueue.end ());
m_controlMessagesQueue.erase (m_controlMessagesQueue.begin (), m_controlMessagesQueue.end ());
}
Object::DoDispose ();
}
void

View File

@@ -41,6 +41,7 @@ NS_OBJECT_ENSURE_REGISTERED (LteSpectrumPhy);
LteSpectrumPhy::LteSpectrumPhy ()
: m_state (IDLE)
{
NS_LOG_FUNCTION (this);
}
@@ -50,10 +51,11 @@ LteSpectrumPhy::~LteSpectrumPhy ()
void LteSpectrumPhy::DoDispose ()
{
m_channel->Dispose ();
NS_LOG_FUNCTION (this);
m_channel = 0;
m_mobility = 0;
m_device = 0;
SpectrumPhy::DoDispose ();
}
std::ostream& operator<< (std::ostream& os, LteSpectrumPhy::State s)

View File

@@ -111,6 +111,8 @@ LteUePhy::~LteUePhy ()
void
LteUePhy::DoDispose ()
{
NS_LOG_FUNCTION (this);
LtePhy::DoDispose ();
}
@@ -129,12 +131,14 @@ LteUePhy::GetTypeId (void)
void
LteUePhy::SetLteUePhySapUser (LteUePhySapUser* s)
{
NS_LOG_FUNCTION (this);
m_uePhySapUser = s;
}
LteUePhySapProvider*
LteUePhy::GetLteUePhySapProvider ()
{
NS_LOG_FUNCTION (this);
return (m_uePhySapProvider);
}