22 #include "ns3/address.h"
99 static uint8_t nextAllocated = 0;
101 uint32_t
address = nextAllocated++;
102 if (nextAllocated == 255)
std::istream & operator>>(std::istream &is, Angles &a)
initialize a struct Angles from input
static bool IsMatchingType(const Address &address)
Check that a generic Address is compatible with UanAddress.
#define NS_ASSERT(condition)
void CopyFrom(const uint8_t *pBuffer)
Sets address to address stored in parameter.
bool operator<(const Room &a, const Room &b)
a polymophic address class
bool CheckCompatible(uint8_t type, uint8_t len) const
A class used for addressing UAN MAC's.
static uint8_t GetType(void)
Get the UanAddress type.
static UanAddress ConvertFrom(const Address &address)
Convert a generic address to a UanAddress.
virtual ~UanAddress()
Destructor.
static UanAddress GetBroadcast(void)
Get the broadcast address (255).
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
Address ConvertTo(void) const
Convert to a generic Address.
uint8_t GetAsInt(void) const
Convert to integer.
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.
void CopyTo(uint8_t *pBuffer)
Writes address to buffer parameter.
uint32_t CopyTo(uint8_t buffer[MAX_SIZE]) const
static UanAddress Allocate()
Allocates UanAddress from 0-254.
bool operator==(const EventId &a, const EventId &b)
static uint8_t Register(void)
Allocate a new type id for a new type of address.
uint8_t m_address
The address.