ns3::BridgeChannel Class Reference
[Bridge]

Virtual channel implementation for bridges (BridgeNetDevice). More...

#include <bridge-channel.h>

Inheritance diagram for ns3::BridgeChannel:
Inheritance graph
[legend]
Collaboration diagram for ns3::BridgeChannel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BridgeChannel ()
virtual ~BridgeChannel ()
void AddChannel (Ptr< Channel > bridgedChannel)
virtual uint32_t GetNDevices (void) const
virtual Ptr< NetDeviceGetDevice (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

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

void ns3::BridgeChannel::AddChannel ( Ptr< Channel bridgedChannel  ) 

Definition at line 48 of file bridge-channel.cc.

References m_bridgedChannels.

Ptr< NetDevice > ns3::BridgeChannel::GetDevice ( uint32_t  i  )  const [virtual]
Parameters:
i index of NetDevice to retrieve
Returns:
one of the NetDevices connected to this channel.

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]
Returns:
the number of NetDevices connected to this Channel.

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().


Member Data Documentation

Definition at line 50 of file bridge-channel.h.

Referenced by AddChannel(), GetDevice(), and GetNDevices().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:10:36 2009 for NS-3 by  doxygen 1.6.3