ns3::Ipv4AddressGeneratorImpl Class Reference

Collaboration diagram for ns3::Ipv4AddressGeneratorImpl:
Collaboration graph
[legend]

List of all members.

Classes

class  Entry
class  NetworkState

Public Member Functions

 Ipv4AddressGeneratorImpl ()
virtual ~Ipv4AddressGeneratorImpl ()
void Init (const Ipv4Address net, const Ipv4Mask mask, const Ipv4Address addr)
Ipv4Address GetNetwork (const Ipv4Mask mask) const
Ipv4Address NextNetwork (const Ipv4Mask mask)
void InitAddress (const Ipv4Address addr, const Ipv4Mask mask)
Ipv4Address GetAddress (const Ipv4Mask mask) const
Ipv4Address NextAddress (const Ipv4Mask mask)
void Reset (void)
bool AddAllocated (const Ipv4Address addr)
void TestMode (void)

Private Member Functions

uint32_t MaskToIndex (Ipv4Mask mask) const

Private Attributes

NetworkState m_netTable [N_BITS]
std::list< Entrym_entries
bool m_test

Static Private Attributes

static const uint32_t N_BITS = 32
static const uint32_t MOST_SIGNIFICANT_BIT = 0x80000000

Detailed Description

Definition at line 29 of file ipv4-address-generator.cc.


Constructor & Destructor Documentation

ns3::Ipv4AddressGeneratorImpl::Ipv4AddressGeneratorImpl (  ) 

Definition at line 78 of file ipv4-address-generator.cc.

References NS_LOG_FUNCTION_NOARGS, and Reset().

ns3::Ipv4AddressGeneratorImpl::~Ipv4AddressGeneratorImpl (  )  [virtual]

Definition at line 124 of file ipv4-address-generator.cc.

References NS_LOG_FUNCTION_NOARGS.


Member Function Documentation

bool ns3::Ipv4AddressGeneratorImpl::AddAllocated ( const Ipv4Address  addr  ) 
Ipv4Address ns3::Ipv4AddressGeneratorImpl::GetAddress ( const Ipv4Mask  mask  )  const

Definition at line 215 of file ipv4-address-generator.cc.

References m_netTable, MaskToIndex(), and NS_LOG_FUNCTION_NOARGS.

Ipv4Address ns3::Ipv4AddressGeneratorImpl::GetNetwork ( const Ipv4Mask  mask  )  const

Definition at line 170 of file ipv4-address-generator.cc.

References m_netTable, MaskToIndex(), and NS_LOG_FUNCTION_NOARGS.

void ns3::Ipv4AddressGeneratorImpl::Init ( const Ipv4Address  net,
const Ipv4Mask  mask,
const Ipv4Address  addr 
)
void ns3::Ipv4AddressGeneratorImpl::InitAddress ( const Ipv4Address  addr,
const Ipv4Mask  mask 
)
uint32_t ns3::Ipv4AddressGeneratorImpl::MaskToIndex ( Ipv4Mask  mask  )  const [private]
Ipv4Address ns3::Ipv4AddressGeneratorImpl::NextAddress ( const Ipv4Mask  mask  ) 
Ipv4Address ns3::Ipv4AddressGeneratorImpl::NextNetwork ( const Ipv4Mask  mask  ) 
void ns3::Ipv4AddressGeneratorImpl::Reset ( void   ) 
void ns3::Ipv4AddressGeneratorImpl::TestMode ( void   ) 

Definition at line 350 of file ipv4-address-generator.cc.

References m_test, and NS_LOG_FUNCTION_NOARGS.


Member Data Documentation

Definition at line 74 of file ipv4-address-generator.cc.

Referenced by AddAllocated(), and Reset().

Definition at line 75 of file ipv4-address-generator.cc.

Referenced by AddAllocated(), Reset(), and TestMode().

const uint32_t ns3::Ipv4AddressGeneratorImpl::MOST_SIGNIFICANT_BIT = 0x80000000 [static, private]

Definition at line 51 of file ipv4-address-generator.cc.

Referenced by Reset().

const uint32_t ns3::Ipv4AddressGeneratorImpl::N_BITS = 32 [static, private]

Definition at line 50 of file ipv4-address-generator.cc.

Referenced by MaskToIndex(), and Reset().


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 14:12:01 2009 for NS-3 by  doxygen 1.6.3