14#include "ns3/attribute-helper.h"
15#include "ns3/attribute.h"
a polymophic address class
Describes an IPv6 address.
This class can contain 16 bit addresses.
std::array< uint8_t, ADDRESS_LENGTH > m_address
Address value.
static Mac16Address GetMulticast(Ipv6Address address)
Returns the multicast address associated with an IPv6 address according to RFC 4944 Section 9.
static bool IsMatchingType(const Address &address)
constexpr std::strong_ordering operator<=>(const Mac16Address &other) const =default
Spaceship comparison operator.
static uint64_t m_allocationIndex
Address allocation index.
static Mac16Address ConvertFrom(const Address &address)
friend std::istream & operator>>(std::istream &is, Mac16Address &address)
Stream extraction operator.
uint16_t ConvertToInt() const
static constexpr uint8_t ADDRESS_LENGTH
Address length when converted to an Address [bytes].
static Mac16Address Allocate()
Allocate a new Mac16Address.
Address ConvertTo() const
bool IsMulticast() const
Checks if the address is a multicast address according to RFC 4944 Section 9 (i.e....
static void ResetAllocationIndex()
Reset the Mac16Address allocation index.
static Mac16Address GetBroadcast()
void CopyFrom(const uint8_t buffer[ADDRESS_LENGTH])
void CopyTo(uint8_t buffer[ADDRESS_LENGTH]) const
bool IsBroadcast() const
Checks if the address is a broadcast address according to 802.15.4 scheme (i.e., 0xFFFF).
static uint8_t GetType()
Return the Type of address.
friend std::ostream & operator<<(std::ostream &os, const Mac16Address &address)
Stream insertion operator.
#define ATTRIBUTE_HELPER_HEADER(type)
Declare the attribute value, accessor and checkers for class type.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::ostream & operator<<(std::ostream &os, const Angles &a)
std::istream & operator>>(std::istream &is, Angles &a)