Virtual channel implementation for bridges (BridgeNetDevice). More...
#include <bridge-channel.h>
Public Member Functions | |
BridgeChannel () | |
virtual | ~BridgeChannel () |
void | AddChannel (Ptr< Channel > bridgedChannel) |
virtual uint32_t | GetNDevices (void) const |
virtual Ptr< NetDevice > | GetDevice (uint32_t i) const |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::BridgeChannel. | |
Private Attributes | |
std::vector< Ptr< Channel > > | m_bridgedChannels |
Virtual channel implementation for bridges (BridgeNetDevice).
Just like BridgeNetDevice aggregates multiple NetDevices, BridgeChannel aggregates multiple channels and make them appear as a single channel to upper layers.
Definition at line 36 of file bridge-channel.h.
ns3::BridgeChannel::BridgeChannel | ( | ) |
Definition at line 36 of file bridge-channel.cc.
References NS_LOG_FUNCTION_NOARGS.
ns3::BridgeChannel::~BridgeChannel | ( | ) | [virtual] |
Definition at line 42 of file bridge-channel.cc.
References NS_LOG_FUNCTION_NOARGS.
Definition at line 48 of file bridge-channel.cc.
References m_bridgedChannels.
i | index of NetDevice to retrieve |
This method must be implemented by subclasses.
Implements ns3::Channel.
Definition at line 67 of file bridge-channel.cc.
References m_bridgedChannels.
uint32_t ns3::BridgeChannel::GetNDevices | ( | void | ) | const [virtual] |
This method must be implemented by subclasses.
Implements ns3::Channel.
Definition at line 54 of file bridge-channel.cc.
References m_bridgedChannels.
TypeId ns3::BridgeChannel::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::BridgeChannel.
No Attributes defined for this type.
No TraceSources defined for this type.
Reimplemented from ns3::Channel.
Definition at line 29 of file bridge-channel.cc.
References ns3::TypeId::SetParent().
std::vector< Ptr<Channel> > ns3::BridgeChannel::m_bridgedChannels [private] |
Definition at line 50 of file bridge-channel.h.
Referenced by AddChannel(), GetDevice(), and GetNDevices().