23 #include "ns3/sixlowpan-net-device.h"
25 #include "ns3/names.h"
51 for (uint32_t i = 0; i < c.
GetN (); ++i)
54 NS_ASSERT_MSG (device != 0,
"No NetDevice found in the node " <<
int(i) );
62 dev->SetNetDevice (device);
69 int64_t currentStream = stream;
77 currentStream += dev->AssignStreams (currentStream);
80 return (currentStream - stream);
Iterator Begin(void) const
Get an iterator which refers to the first NetDevice in the container.
smart pointer class similar to boost::intrusive_ptr
#define NS_LOG_FUNCTION(parameters)
Ptr< NetDevice > Get(uint32_t i) const
Get the Ptr stored in this container at a given index.
Hold a value for an Attribute.
#define NS_LOG_COMPONENT_DEFINE(name)
void SetTypeId(TypeId tid)
uint32_t GetN(void) const
Get the number of Ptr stored in this container.
Ptr< Object > Create(void) const
void Add(NetDeviceContainer other)
Append the contents of another NetDeviceContainer to the end of this container.
holds a vector of ns3::NetDevice pointers
ObjectFactory m_deviceFactory
Object factory.
#define NS_LOG_LOGIC(msg)
NetDeviceContainer Install(NetDeviceContainer c)
Install the SixLoWPAN stack on top of an existing NetDevice.
Shim performing 6LoWPAN compression, decompression and fragmentation.
void Set(std::string name, const AttributeValue &value)
#define NS_ASSERT_MSG(condition, message)
void SetDeviceAttribute(std::string n1, const AttributeValue &v1)
Set an attribute on each ns3::SixlowpanNetDevice created by SixlowpanHelper::Install.
uint32_t AddDevice(Ptr< NetDevice > device)
uint32_t GetId(void) const
int64_t AssignStreams(NetDeviceContainer c, int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model...
std::vector< Ptr< NetDevice > >::const_iterator Iterator
Iterator End(void) const
Get an iterator which indicates past-the-last NetDevice in the container.