ns3::olsr Namespace Reference

Classes

class  AgentImpl
class  Agent
 Class implementing the OLSR state machine. More...
class  PacketHeader
class  MessageHeader
class  OlsrRoutingTableTest
struct  RoutingTableEntry
 An OLSR's routing table entry. More...
class  RoutingTable
 Defines rtable_t as a map of OLSR_rt_entry, whose key is the destination address. More...

Typedefs

typedef std::vector
< MessageHeader
MessageList

Functions

 NS_LOG_COMPONENT_DEFINE ("OlsrAgent")
 NS_OBJECT_ENSURE_REGISTERED (AgentImpl)
 NS_OBJECT_ENSURE_REGISTERED (Agent)
 NS_LOG_COMPONENT_DEFINE ("OlsrHeader")
uint8_t SecondsToEmf (double seconds)
 Converts a decimal number of seconds to the mantissa/exponent format.
double EmfToSeconds (uint8_t olsrFormat)
 Converts a number of seconds in the mantissa/exponent format to a decimal number.
 NS_OBJECT_ENSURE_REGISTERED (PacketHeader)
 NS_OBJECT_ENSURE_REGISTERED (MessageHeader)
static std::ostream & operator<< (std::ostream &os, const PacketHeader &packet)
static std::ostream & operator<< (std::ostream &os, const MessageHeader &message)
static std::ostream & operator<< (std::ostream &os, const MessageList &messages)
 NS_LOG_COMPONENT_DEFINE ("OlsrRoutingTable")

Variables

static OlsrRoutingTableTest gOlsrRoutingTableTest

Typedef Documentation

typedef std::vector<MessageHeader> ns3::olsr::MessageList

Definition at line 450 of file olsr-header.h.


Function Documentation

double ns3::olsr::EmfToSeconds ( uint8_t  olsrFormat  ) 

Converts a number of seconds in the mantissa/exponent format to a decimal number.

Parameters:
olsr_format number of seconds in mantissa/exponent format.
Returns:
the decimal number of seconds.

Referenced by ns3::olsr::MessageHeader::Hello::GetHTime(), ns3::olsr::MessageHeader::GetVTime(), and ns3::OlsrHeaderTest::RunTests().

ns3::olsr::NS_LOG_COMPONENT_DEFINE ( "OlsrRoutingTable"   ) 
ns3::olsr::NS_LOG_COMPONENT_DEFINE ( "OlsrHeader"   ) 
ns3::olsr::NS_LOG_COMPONENT_DEFINE ( "OlsrAgent"   ) 
ns3::olsr::NS_OBJECT_ENSURE_REGISTERED ( MessageHeader   ) 
ns3::olsr::NS_OBJECT_ENSURE_REGISTERED ( PacketHeader   ) 
ns3::olsr::NS_OBJECT_ENSURE_REGISTERED ( Agent   ) 
ns3::olsr::NS_OBJECT_ENSURE_REGISTERED ( AgentImpl   ) 
static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const MessageList &  messages 
) [inline, static]

Definition at line 452 of file olsr-header.h.

static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const MessageHeader &  message 
) [inline, static]

Definition at line 444 of file olsr-header.h.

References ns3::olsr::MessageHeader::Print().

static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const PacketHeader &  packet 
) [inline, static]

Definition at line 438 of file olsr-header.h.

References ns3::olsr::PacketHeader::Print().

uint8_t ns3::olsr::SecondsToEmf ( double  seconds  ) 

Converts a decimal number of seconds to the mantissa/exponent format.

Parameters:
seconds decimal number of seconds we want to convert.
Returns:
the number of seconds in mantissa/exponent format.

Referenced by ns3::OlsrHeaderTest::RunTests(), ns3::olsr::MessageHeader::Hello::SetHTime(), and ns3::olsr::MessageHeader::SetVTime().


Variable Documentation

Definition at line 327 of file olsr-routing-table.cc.

Generated on Thu Dec 3 14:12:20 2009 for NS-3 by  doxygen 1.6.3