20 #ifndef MAC16_ADDRESS_H
21 #define MAC16_ADDRESS_H
25 #include "ns3/attribute.h"
26 #include "ns3/attribute-helper.h"
54 void CopyFrom (
const uint8_t buffer[2]);
60 void CopyTo (uint8_t buffer[2])
const;
friend std::istream & operator>>(std::istream &is, Mac16Address &address)
ATTRIBUTE_HELPER_HEADER(ObjectFactory)
std::istream & operator>>(std::istream &is, Angles &a)
initialize a struct Angles from input
static Mac16Address ConvertFrom(const Address &address)
void CopyFrom(const uint8_t buffer[2])
bool operator<(const Room &a, const Room &b)
a polymophic address class
static uint8_t GetType(void)
Address ConvertTo(void) const
friend bool operator<(const Mac16Address &a, const Mac16Address &b)
void CopyTo(uint8_t buffer[2]) const
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
friend bool operator!=(const Mac16Address &a, const Mac16Address &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.
This class can contain 16 bit addresses.
friend bool operator==(const Mac16Address &a, const Mac16Address &b)
Macro to make help make class an ns-3 attribute.
bool operator==(const EventId &a, const EventId &b)
static bool IsMatchingType(const Address &address)
static Mac16Address Allocate(void)
Allocate a new Mac16Address.