21 #ifndef MAC8_ADDRESS_H 
   22 #define MAC8_ADDRESS_H 
   24 #include "ns3/address.h" 
   84   void CopyFrom (
const uint8_t *pBuffer);
 
   91   void CopyTo (uint8_t *pBuffer) 
const;
 
std::istream & operator>>(std::istream &is, Angles &a)
initialize a struct Angles from input 
 
Address ConvertTo(void) const 
Convert to a generic Address. 
 
void CopyTo(uint8_t *pBuffer) const 
Writes address to buffer parameter. 
 
static uint8_t GetType(void)
Get the Mac8Address type. 
 
friend bool operator!=(const Mac8Address &a, const Mac8Address &b)
Address comparison, unequal. 
 
static Mac8Address GetBroadcast(void)
Get the broadcast address (255). 
 
friend bool operator<(const Mac8Address &a, const Mac8Address &b)
Address comparison, less than. 
 
static bool IsMatchingType(const Address &address)
Check that a generic Address is compatible with Mac8Address. 
 
friend std::istream & operator>>(std::istream &is, Mac8Address &address)
Read address from stream is as 8 bit integer. 
 
a polymophic address class 
 
bool operator<(const EventId &a, const EventId &b)
 
friend bool operator==(const Mac8Address &a, const Mac8Address &b)
Address comparison, equalit. 
 
friend std::ostream & operator<<(std::ostream &os, const Mac8Address &address)
Write address to stream os as 8 bit integer. 
 
A class used for addressing MAC8 MAC's. 
 
Mac8Address()
Constructor. 
 
void CopyFrom(const uint8_t *pBuffer)
Sets address to address stored in parameter. 
 
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output 
 
static Mac8Address Allocate()
Allocates Mac8Address from 0-254. 
 
bool operator!=(Callback< R, T1, T2, T3, T4, T5, T6, T7, T8, T9 > a, Callback< R, T1, T2, T3, T4, T5, T6, T7, T8, T9 > b)
Inequality test. 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
virtual ~Mac8Address()
Destructor. 
 
bool operator==(const EventId &a, const EventId &b)
 
static Mac8Address ConvertFrom(const Address &address)
Convert a generic address to a Mac8Address. 
 
uint8_t m_address
The address.