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;
a polymophic address class
A class used for addressing MAC8 MAC's.
static Mac8Address GetBroadcast(void)
Get the broadcast address (255).
friend bool operator<(const Mac8Address &a, const Mac8Address &b)
Address comparison, less than.
Address ConvertTo(void) const
Convert to a generic Address.
static Mac8Address ConvertFrom(const Address &address)
Convert a generic address to a Mac8Address.
static bool IsMatchingType(const Address &address)
Check that a generic Address is compatible with Mac8Address.
uint8_t m_address
The address.
static uint8_t GetType(void)
Get the Mac8Address type.
void CopyTo(uint8_t *pBuffer) const
Writes address to buffer parameter.
static Mac8Address Allocate()
Allocates Mac8Address from 0-254.
friend bool operator==(const Mac8Address &a, const Mac8Address &b)
Address comparison, equalit.
friend bool operator!=(const Mac8Address &a, const Mac8Address &b)
Address comparison, unequal.
friend std::istream & operator>>(std::istream &is, Mac8Address &address)
Read address from stream is as 8 bit integer.
friend std::ostream & operator<<(std::ostream &os, const Mac8Address &address)
Write address to stream os as 8 bit integer.
void CopyFrom(const uint8_t *pBuffer)
Sets address to address stored in parameter.
virtual ~Mac8Address()
Destructor.
Mac8Address()
Constructor.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
bool operator==(const EventId &a, const EventId &b)
bool operator<(const EventId &a, const EventId &b)
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.
std::istream & operator>>(std::istream &is, Angles &a)
std::ostream & operator<<(std::ostream &os, const Angles &a)