26 #include "ns3/attribute.h"
27 #include "ns3/attribute-helper.h"
28 #include "ns3/tag-buffer.h"
113 Address (uint8_t type,
const uint8_t *buffer, uint8_t len);
144 uint32_t
CopyAllTo (uint8_t *buffer, uint8_t len)
const;
155 uint32_t
CopyFrom (
const uint8_t *buffer, uint8_t len);
166 uint32_t
CopyAllFrom (
const uint8_t *buffer, uint8_t len);
bool IsInvalid(void) const
ATTRIBUTE_HELPER_HEADER(ObjectFactory)
std::istream & operator>>(std::istream &is, Angles &a)
initialize a struct Angles from input
friend std::ostream & operator<<(std::ostream &os, const Address &address)
bool IsMatchingType(uint8_t type) const
bool operator<(const Room &a, const Room &b)
Address()
Create an invalid address.
friend bool operator<(const Address &a, const Address &b)
a polymophic address class
bool CheckCompatible(uint8_t type, uint8_t len) const
uint32_t CopyAllTo(uint8_t *buffer, uint8_t len) const
Address & operator=(const Address &address)
uint8_t GetLength(void) const
uint32_t CopyAllFrom(const uint8_t *buffer, uint8_t len)
void Deserialize(TagBuffer buffer)
uint32_t GetSerializedSize(void) const
Get the number of bytes needed to serialize the underlying Address Typically, this is GetLength () + ...
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
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.
uint32_t CopyFrom(const uint8_t *buffer, uint8_t len)
uint32_t CopyTo(uint8_t buffer[MAX_SIZE]) const
void Serialize(TagBuffer buffer) const
Serialize this address in host byte order to a byte buffer.
bool operator==(const EventId &a, const EventId &b)
friend bool operator==(const Address &a, const Address &b)
Macro to make help make class an ns-3 attribute.
static uint8_t Register(void)
Allocate a new type id for a new type of address.
friend std::istream & operator>>(std::istream &is, Address &address)
MaxSize_e
The maximum size of a byte buffer which can be stored in an Address instance.