holds a vector of ns3::NetDevice pointers More...
#include <net-device-container.h>
Public Types | |
typedef std::vector< Ptr < NetDevice > >::const_iterator | Iterator |
Public Member Functions | |
NetDeviceContainer () | |
NetDeviceContainer (Ptr< NetDevice > dev) | |
NetDeviceContainer (const NetDeviceContainer &a, const NetDeviceContainer &b) | |
Iterator | Begin (void) const |
Iterator | End (void) const |
uint32_t | GetN (void) const |
Ptr< NetDevice > | Get (uint32_t i) const |
void | Add (NetDeviceContainer other) |
void | Add (Ptr< NetDevice > device) |
Private Attributes | |
std::vector< Ptr< NetDevice > > | m_devices |
holds a vector of ns3::NetDevice pointers
Definition at line 33 of file net-device-container.h.
typedef std::vector<Ptr<NetDevice> >::const_iterator ns3::NetDeviceContainer::Iterator |
Definition at line 36 of file net-device-container.h.
ns3::NetDeviceContainer::NetDeviceContainer | ( | ) |
Create an empty NetDeviceContainer.
Definition at line 24 of file net-device-container.cc.
dev | a device to add to the container |
Create a NetDeviceContainer with exactly one device
Definition at line 26 of file net-device-container.cc.
References m_devices.
ns3::NetDeviceContainer::NetDeviceContainer | ( | const NetDeviceContainer & | a, | |
const NetDeviceContainer & | b | |||
) |
a | a device container | |
b | another device container |
Create a device container which is a concatenation of the two input NetDeviceContainers.
Definition at line 30 of file net-device-container.cc.
References Add().
device | another netdevice pointer. |
Append to the end of this container the input netdevice pointer.
Definition at line 67 of file net-device-container.cc.
References m_devices.
void ns3::NetDeviceContainer::Add | ( | NetDeviceContainer | other | ) |
other | another netdevice container |
Append to the end of this container the other input container.
Definition at line 59 of file net-device-container.cc.
References Begin(), End(), and m_devices.
Referenced by ns3::EmuHelper::EnableAscii(), ns3::YansWifiPhyHelper::EnableAsciiAll(), ns3::PointToPointHelper::EnableAsciiAll(), ns3::Ns2ExtWifiPhyHelper::EnableAsciiAll(), ns3::CsmaHelper::EnableAsciiAll(), ns3::EmuHelper::EnablePcap(), ns3::YansWifiPhyHelper::EnablePcapAll(), ns3::PointToPointHelper::EnablePcapAll(), ns3::Ns2ExtWifiPhyHelper::EnablePcapAll(), ns3::CsmaHelper::EnablePcapAll(), ns3::PointToPointHelper::EnqueueEvent(), ns3::CsmaHelper::EnqueueEvent(), ns3::WifiHelper::Install(), ns3::EmuHelper::Install(), ns3::CsmaHelper::InstallPriv(), NetDeviceContainer(), ns3::GlobalRouter::ProcessBridgedBroadcastLink(), and ns3::GlobalRouter::ProcessSingleBroadcastLink().
NetDeviceContainer::Iterator ns3::NetDeviceContainer::Begin | ( | void | ) | const |
Definition at line 38 of file net-device-container.cc.
References m_devices.
Referenced by Add(), ns3::StaticMulticastRouteHelper::AddMulticastRoute(), ns3::YansWifiPhyHelper::EnableAscii(), ns3::PointToPointHelper::EnableAscii(), ns3::Ns2ExtWifiPhyHelper::EnableAscii(), ns3::EmuHelper::EnableAscii(), ns3::CsmaHelper::EnableAscii(), ns3::YansWifiPhyHelper::EnablePcap(), ns3::PointToPointHelper::EnablePcap(), ns3::Ns2ExtWifiPhyHelper::EnablePcap(), ns3::EmuHelper::EnablePcap(), ns3::CsmaHelper::EnablePcap(), and ns3::BridgeHelper::Install().
NetDeviceContainer::Iterator ns3::NetDeviceContainer::End | ( | void | ) | const |
Definition at line 43 of file net-device-container.cc.
References m_devices.
Referenced by Add(), ns3::StaticMulticastRouteHelper::AddMulticastRoute(), ns3::YansWifiPhyHelper::EnableAscii(), ns3::PointToPointHelper::EnableAscii(), ns3::Ns2ExtWifiPhyHelper::EnableAscii(), ns3::EmuHelper::EnableAscii(), ns3::CsmaHelper::EnableAscii(), ns3::YansWifiPhyHelper::EnablePcap(), ns3::PointToPointHelper::EnablePcap(), ns3::Ns2ExtWifiPhyHelper::EnablePcap(), ns3::EmuHelper::EnablePcap(), ns3::CsmaHelper::EnablePcap(), and ns3::BridgeHelper::Install().
i | the index of the requested netdevice pointer. |
Definition at line 54 of file net-device-container.cc.
References m_devices.
Referenced by ns3::Ipv4AddressHelper::Assign(), ns3::GlobalRouter::BuildNetworkLSAs(), and ns3::PointToPointHelper::EnqueueEvent().
uint32_t ns3::NetDeviceContainer::GetN | ( | void | ) | const |
Definition at line 49 of file net-device-container.cc.
References m_devices.
Referenced by ns3::Ipv4AddressHelper::Assign(), ns3::GlobalRouter::BuildNetworkLSAs(), and ns3::GlobalRouter::DiscoverLSAs().
std::vector<Ptr<NetDevice> > ns3::NetDeviceContainer::m_devices [private] |
Definition at line 98 of file net-device-container.h.
Referenced by Add(), Begin(), End(), Get(), GetN(), and NetDeviceContainer().