ns3::Mac64Address Class Reference
[Address]

an EUI-64 address More...

#include <mac64-address.h>

List of all members.

Public Member Functions

 Mac64Address ()
 Mac64Address (const char *str)
void CopyFrom (const uint8_t buffer[8])
void CopyTo (uint8_t buffer[8]) const
 operator Address () const

Static Public Member Functions

static Mac64Address ConvertFrom (const Address &address)
static bool IsMatchingType (const Address &address)
static Mac64Address Allocate (void)

Private Member Functions

Address ConvertTo (void) const

Static Private Member Functions

static uint8_t GetType (void)

Private Attributes

uint8_t m_address [8]

Detailed Description

an EUI-64 address

This class can contain 64 bit IEEE addresses.

Definition at line 37 of file mac64-address.h.


Constructor & Destructor Documentation

ns3::Mac64Address::Mac64Address (  ) 

Definition at line 43 of file mac64-address.cc.

ns3::Mac64Address::Mac64Address ( const char *  str  ) 
Parameters:
str a string representing the new Mac64Address

The format of the string is "xx:xx:xx:xx:xx:xx"

Definition at line 47 of file mac64-address.cc.

References m_address.


Member Function Documentation

Mac64Address ns3::Mac64Address::Allocate ( void   )  [static]

Allocate a new Mac64Address.

Definition at line 112 of file mac64-address.cc.

References GetType(), and m_address.

Mac64Address ns3::Mac64Address::ConvertFrom ( const Address address  )  [static]
Parameters:
address a polymorphic address
Returns:
a new Mac64Address from the polymorphic address

This function performs a type check and asserts if the type of the input address is not compatible with an Mac64Address.

Definition at line 98 of file mac64-address.cc.

Address ns3::Mac64Address::ConvertTo ( void   )  const [private]
Returns:
a new Address instance

Convert an instance of this class to a polymorphic Address instance.

Definition at line 106 of file mac64-address.cc.

void ns3::Mac64Address::CopyFrom ( const uint8_t  buffer[8]  ) 
Parameters:
buffer address in network order

Copy the input address to our internal buffer.

Definition at line 78 of file mac64-address.cc.

void ns3::Mac64Address::CopyTo ( uint8_t  buffer[8]  )  const
Parameters:
buffer address in network order

Copy the internal address to the input buffer.

Definition at line 83 of file mac64-address.cc.

References m_address.

uint8_t ns3::Mac64Address::GetType ( void   )  [static, private]

Definition at line 128 of file mac64-address.cc.

Referenced by Allocate(), and operator Address().

bool ns3::Mac64Address::IsMatchingType ( const Address address  )  [static]
Returns:
true if the address matches, false otherwise.

Definition at line 89 of file mac64-address.cc.

References m_address.

ns3::Mac64Address::operator Address ( void   )  const
Returns:
a new Address instance

Convert an instance of this class to a polymorphic Address instance.

Definition at line 93 of file mac64-address.cc.

References ns3::Address::CheckCompatible(), and GetType().


Member Data Documentation

uint8_t ns3::Mac64Address::m_address[8] [private]

Definition at line 91 of file mac64-address.h.

Referenced by Allocate(), CopyTo(), IsMatchingType(), and Mac64Address().


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