21 #include "ns3/aodv-routing-protocol.h" 
   22 #include "ns3/node-list.h" 
   23 #include "ns3/names.h" 
   25 #include "ns3/ipv4-list-routing.h" 
   59   int64_t currentStream = stream;
 
   71           currentStream += aodv->AssignStreams (currentStream);
 
   81           for (uint32_t i = 0; i < list->GetNRoutingProtocols (); i++)
 
   83               listProto = list->GetRoutingProtocol (i, priority);
 
   84               listAodv = DynamicCast<aodv::RoutingProtocol> (listProto);
 
   87                   currentStream += listAodv->AssignStreams (currentStream);
 
   93   return (currentStream - stream);
 
Smart pointer class similar to boost::intrusive_ptr. 
 
std::vector< Ptr< Node > >::const_iterator Iterator
Node container iterator. 
 
Ptr< T > GetObject(void) const 
Get a pointer to the requested aggregated Object. 
 
Hold a value for an Attribute. 
 
void AggregateObject(Ptr< Object > other)
Aggregate two Objects together. 
 
void SetTypeId(TypeId tid)
Set the TypeId of the Objects to be created by this factory. 
 
Iterator End(void) const 
Get an iterator which indicates past-the-last Node in the container. 
 
AodvHelper * Copy(void) const 
 
Ptr< Object > Create(void) const 
Create an Object instance of the configured TypeId. 
 
ObjectFactory m_agentFactory
the factory to create AODV routing object 
 
a factory to create ns3::Ipv4RoutingProtocol objects 
 
Access to the Ipv4 forwarding table, interfaces, and configuration. 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
keep track of a set of node pointers. 
 
Iterator Begin(void) const 
Get an iterator which refers to the first Node in the container. 
 
void Set(std::string name, const AttributeValue &value)
 
void Set(std::string name, const AttributeValue &value)
Set an attribute to be set during construction. 
 
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
 
int64_t AssignStreams(NodeContainer c, int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model...
 
virtual Ptr< Ipv4RoutingProtocol > Create(Ptr< Node > node) const 
 
Helper class that adds AODV routing to nodes.