A message within a PbbPacket packet. More...
#include <packetbb.h>
Public Types | |
typedef std::list< Ptr < PbbAddressBlock > >::iterator | AddressBlockIterator |
typedef std::list< Ptr < PbbAddressBlock > >::const_iterator | ConstAddressBlockIterator |
typedef std::list< Ptr< PbbTlv > >::const_iterator | ConstTlvIterator |
typedef std::list< Ptr< PbbTlv > >::iterator | TlvIterator |
Public Member Functions | |
PbbMessage () | |
virtual | ~PbbMessage () |
Ptr< PbbAddressBlock > | AddressBlockBack (void) |
const Ptr< PbbAddressBlock > | AddressBlockBack (void) const |
AddressBlockIterator | AddressBlockBegin () |
ConstAddressBlockIterator | AddressBlockBegin () const |
void | AddressBlockClear (void) |
Removes all address blocks from this message. | |
bool | AddressBlockEmpty (void) const |
AddressBlockIterator | AddressBlockEnd () |
ConstAddressBlockIterator | AddressBlockEnd () const |
AddressBlockIterator | AddressBlockErase (AddressBlockIterator position) |
Removes the address block at the specified position. | |
AddressBlockIterator | AddressBlockErase (AddressBlockIterator first, AddressBlockIterator last) |
Removes all address blocks from [first, last) (includes first, not includes last). | |
Ptr< PbbAddressBlock > | AddressBlockFront (void) |
const Ptr< PbbAddressBlock > | AddressBlockFront (void) const |
void | AddressBlockPopBack (void) |
Removes an address block from the back of this message. | |
void | AddressBlockPopFront (void) |
Removes an address block from the front of this message. | |
void | AddressBlockPushBack (Ptr< PbbAddressBlock > block) |
Appends an address block to the front of this message. | |
void | AddressBlockPushFront (Ptr< PbbAddressBlock > block) |
Prepends an address block to the front of this message. | |
int | AddressBlockSize (void) const |
void | Deserialize (Buffer::Iterator &start) |
Deserializes a message from the specified buffer. | |
uint8_t | GetHopCount (void) const |
uint8_t | GetHopLimit (void) const |
Address | GetOriginatorAddress (void) const |
uint16_t | GetSequenceNumber (void) const |
uint32_t | GetSerializedSize (void) const |
uint8_t | GetType (void) const |
bool | HasHopCount (void) const |
Tests whether or not this message has a hop count. | |
bool | HasHopLimit (void) const |
Tests whether or not this message has a hop limit. | |
bool | HasOriginatorAddress (void) const |
Tests whether or not this message has an originator address. | |
bool | HasSequenceNumber (void) const |
Tests whether or not this message has a sequence number. | |
bool | operator!= (const PbbMessage &other) const |
bool | operator== (const PbbMessage &other) const |
void | Print (std::ostream &os) const |
Pretty-prints the contents of this message. | |
void | Print (std::ostream &os, int level) const |
Pretty-prints the contents of this message, with specified indentation. | |
void | Serialize (Buffer::Iterator &start) const |
Serializes this message into the specified buffer. | |
void | SetHopCount (uint8_t hopcount) |
Sets the current number of hops this message has traveled. | |
void | SetHopLimit (uint8_t hoplimit) |
Sets the maximum number of hops this message should travel. | |
void | SetOriginatorAddress (Address address) |
Sets the address for the node that created this packet. | |
void | SetSequenceNumber (uint16_t seqnum) |
Sets the sequence number of this message. | |
void | SetType (uint8_t type) |
Sets the type for this message. | |
Ptr< PbbTlv > | TlvBack (void) |
const Ptr< PbbTlv > | TlvBack (void) const |
TlvIterator | TlvBegin () |
ConstTlvIterator | TlvBegin () const |
void | TlvClear (void) |
Removes all message TLVs from this block. | |
bool | TlvEmpty (void) const |
TlvIterator | TlvEnd () |
ConstTlvIterator | TlvEnd () const |
TlvIterator | TlvErase (TlvIterator position) |
Removes the message TLV at the specified position. | |
TlvIterator | TlvErase (TlvIterator first, TlvIterator last) |
Removes all message TLVs from [first, last) (includes first, not includes last). | |
Ptr< PbbTlv > | TlvFront (void) |
const Ptr< PbbTlv > | TlvFront (void) const |
void | TlvPopBack (void) |
Removes a message TLV from the back of this message. | |
void | TlvPopFront (void) |
Removes a message TLV from the front of this message. | |
void | TlvPushBack (Ptr< PbbTlv > tlv) |
Appends a message TLV to the back of this message. | |
void | TlvPushFront (Ptr< PbbTlv > tlv) |
Prepends a message TLV to the front of this message. | |
int | TlvSize (void) const |
![]() | |
SimpleRefCount () | |
SimpleRefCount (const SimpleRefCount &o) | |
uint32_t | GetReferenceCount (void) const |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
Static Public Member Functions | |
static Ptr< PbbMessage > | DeserializeMessage (Buffer::Iterator &start) |
Deserializes a message, returning the correct object depending on whether it is an IPv4 message or an IPv6 message. | |
![]() | |
static void | Cleanup (void) |
Protected Member Functions | |
virtual Ptr< PbbAddressBlock > | AddressBlockDeserialize (Buffer::Iterator &start) const =0 |
virtual Address | DeserializeOriginatorAddress (Buffer::Iterator &start) const =0 |
virtual PbbAddressLength | GetAddressLength (void) const =0 |
virtual void | PrintOriginatorAddress (std::ostream &os) const =0 |
virtual void | SerializeOriginatorAddress (Buffer::Iterator &start) const =0 |
Private Attributes | |
std::list< Ptr< PbbAddressBlock > > | m_addressBlockList |
PbbAddressLength | m_addrSize |
bool | m_hasHopCount |
bool | m_hasHopLimit |
bool | m_hasOriginatorAddress |
bool | m_hasSequenceNumber |
uint8_t | m_hopCount |
uint8_t | m_hopLimit |
Address | m_originatorAddress |
uint16_t | m_sequenceNumber |
PbbTlvBlock | m_tlvList |
uint8_t | m_type |
A message within a PbbPacket packet.
There may be any number of messages in one packet packet. This is a pure virtual base class, when creating a message, you should instantiate either PbbMessageIpv4 or PbbMessageIpv6.
Definition at line 652 of file packetbb.h.
typedef std::list< Ptr<PbbAddressBlock> >::iterator ns3::PbbMessage::AddressBlockIterator |
Definition at line 657 of file packetbb.h.
typedef std::list< Ptr<PbbAddressBlock> >::const_iterator ns3::PbbMessage::ConstAddressBlockIterator |
Definition at line 658 of file packetbb.h.
typedef std::list< Ptr<PbbTlv> >::const_iterator ns3::PbbMessage::ConstTlvIterator |
Definition at line 656 of file packetbb.h.
typedef std::list< Ptr<PbbTlv> >::iterator ns3::PbbMessage::TlvIterator |
Definition at line 655 of file packetbb.h.
ns3::PbbMessage::PbbMessage | ( | ) |
Definition at line 1024 of file packetbb.cc.
References ns3::IPV4, m_addrSize, m_hasHopCount, m_hasHopLimit, m_hasOriginatorAddress, m_hasSequenceNumber, and NS_LOG_FUNCTION.
|
virtual |
Definition at line 1035 of file packetbb.cc.
References AddressBlockClear(), and NS_LOG_FUNCTION.
Ptr< PbbAddressBlock > ns3::PbbMessage::AddressBlockBack | ( | void | ) |
Definition at line 1334 of file packetbb.cc.
References m_addressBlockList, and NS_LOG_FUNCTION.
const Ptr< PbbAddressBlock > ns3::PbbMessage::AddressBlockBack | ( | void | ) | const |
Definition at line 1341 of file packetbb.cc.
References m_addressBlockList, and NS_LOG_FUNCTION.
PbbMessage::AddressBlockIterator ns3::PbbMessage::AddressBlockBegin | ( | void | ) |
Definition at line 1278 of file packetbb.cc.
References m_addressBlockList, and NS_LOG_FUNCTION.
Referenced by AddressBlockClear(), GetSerializedSize(), operator==(), Print(), and Serialize().
PbbMessage::ConstAddressBlockIterator ns3::PbbMessage::AddressBlockBegin | ( | void | ) | const |
Definition at line 1285 of file packetbb.cc.
References m_addressBlockList, and NS_LOG_FUNCTION.
void ns3::PbbMessage::AddressBlockClear | ( | void | ) |
Removes all address blocks from this message.
Definition at line 1391 of file packetbb.cc.
References AddressBlockBegin(), AddressBlockEnd(), m_addressBlockList, and NS_LOG_FUNCTION.
Referenced by ~PbbMessage().
|
protectedpure virtual |
Implemented in ns3::PbbMessageIpv6, and ns3::PbbMessageIpv4.
Referenced by Deserialize().
bool ns3::PbbMessage::AddressBlockEmpty | ( | void | ) | const |
Definition at line 1313 of file packetbb.cc.
References m_addressBlockList, and NS_LOG_FUNCTION.
PbbMessage::AddressBlockIterator ns3::PbbMessage::AddressBlockEnd | ( | void | ) |
Definition at line 1292 of file packetbb.cc.
References m_addressBlockList, and NS_LOG_FUNCTION.
Referenced by AddressBlockClear(), GetSerializedSize(), operator==(), Print(), and Serialize().
PbbMessage::ConstAddressBlockIterator ns3::PbbMessage::AddressBlockEnd | ( | void | ) | const |
Definition at line 1299 of file packetbb.cc.
References m_addressBlockList, and NS_LOG_FUNCTION.
PbbMessage::AddressBlockIterator ns3::PbbMessage::AddressBlockErase | ( | PbbMessage::AddressBlockIterator | position | ) |
Removes the address block at the specified position.
position | an Iterator pointing to the address block to erase. |
Definition at line 1376 of file packetbb.cc.
References m_addressBlockList, and NS_LOG_FUNCTION.
PbbMessage::AddressBlockIterator ns3::PbbMessage::AddressBlockErase | ( | PbbMessage::AddressBlockIterator | first, |
PbbMessage::AddressBlockIterator | last | ||
) |
Removes all address blocks from [first, last) (includes first, not includes last).
first | an Iterator pointing to the first address block to erase (inclusive). |
last | an Iterator pointing to the element past the last address block to erase. |
Definition at line 1383 of file packetbb.cc.
References m_addressBlockList, and NS_LOG_FUNCTION.
Ptr< PbbAddressBlock > ns3::PbbMessage::AddressBlockFront | ( | void | ) |
Definition at line 1320 of file packetbb.cc.
References m_addressBlockList, and NS_LOG_FUNCTION.
const Ptr< PbbAddressBlock > ns3::PbbMessage::AddressBlockFront | ( | void | ) | const |
Definition at line 1327 of file packetbb.cc.
References m_addressBlockList, and NS_LOG_FUNCTION.
void ns3::PbbMessage::AddressBlockPopBack | ( | void | ) |
Removes an address block from the back of this message.
Definition at line 1369 of file packetbb.cc.
References m_addressBlockList, and NS_LOG_FUNCTION.
void ns3::PbbMessage::AddressBlockPopFront | ( | void | ) |
Removes an address block from the front of this message.
Definition at line 1355 of file packetbb.cc.
References m_addressBlockList, and NS_LOG_FUNCTION.
void ns3::PbbMessage::AddressBlockPushBack | ( | Ptr< PbbAddressBlock > | block | ) |
Appends an address block to the front of this message.
block | a smart pointer to the address block to append. |
Definition at line 1362 of file packetbb.cc.
References m_addressBlockList, and NS_LOG_FUNCTION.
Referenced by Deserialize(), and PbbTestSuite::PbbTestSuite().
void ns3::PbbMessage::AddressBlockPushFront | ( | Ptr< PbbAddressBlock > | block | ) |
Prepends an address block to the front of this message.
block | a smart pointer to the address block to prepend. |
Definition at line 1348 of file packetbb.cc.
References m_addressBlockList, and NS_LOG_FUNCTION.
int ns3::PbbMessage::AddressBlockSize | ( | void | ) | const |
Definition at line 1306 of file packetbb.cc.
References m_addressBlockList, and NS_LOG_FUNCTION.
Referenced by operator==().
void ns3::PbbMessage::Deserialize | ( | Buffer::Iterator & | start | ) |
Deserializes a message from the specified buffer.
start | a reference to the point in a buffer to begin deserializing. |
Users should not need to call this. Blocks will be deserialized by their containing packet.
Definition at line 1533 of file packetbb.cc.
References AddressBlockDeserialize(), AddressBlockPushBack(), ns3::PbbTlvBlock::Deserialize(), DeserializeOriginatorAddress(), ns3::Buffer::Iterator::GetDistanceFrom(), m_tlvList, MHAS_HOP_COUNT, MHAS_HOP_LIMIT, MHAS_ORIG, MHAS_SEQ_NUM, NS_LOG_FUNCTION, ns3::Buffer::Iterator::ReadNtohU16(), ns3::Buffer::Iterator::ReadU8(), SetHopCount(), SetHopLimit(), SetOriginatorAddress(), SetSequenceNumber(), SetType(), and visualizer.core::start().
Referenced by DeserializeMessage(), ns3::PbbMessageIpv4::DeserializeOriginatorAddress(), and ns3::PbbMessageIpv6::DeserializeOriginatorAddress().
|
static |
Deserializes a message, returning the correct object depending on whether it is an IPv4 message or an IPv6 message.
start | a reference to the point in a buffer to begin deserializing. |
Users should not need to call this. Blocks will be deserialized by their containing packet.
Definition at line 1500 of file packetbb.cc.
References Deserialize(), ns3::IPV4, ns3::IPV6, ns3::Buffer::Iterator::Next(), NS_LOG_FUNCTION, ns3::Buffer::Iterator::Prev(), and ns3::Buffer::Iterator::ReadU8().
Referenced by ns3::PbbPacket::Deserialize().
|
protectedpure virtual |
Implemented in ns3::PbbMessageIpv6, and ns3::PbbMessageIpv4.
Referenced by Deserialize().
|
protectedpure virtual |
Implemented in ns3::PbbMessageIpv6, and ns3::PbbMessageIpv4.
Definition at line 1056 of file packetbb.cc.
References m_addrSize, and NS_LOG_FUNCTION.
Referenced by GetSerializedSize(), operator==(), Print(), and Serialize().
uint8_t ns3::PbbMessage::GetHopCount | ( | void | ) | const |
Calling this while HasHopCount is False is undefined. Make sure you check it first. This will be checked by an assert in debug builds.
Definition at line 1117 of file packetbb.cc.
References HasHopCount(), m_hopCount, NS_ASSERT, and NS_LOG_FUNCTION.
Referenced by operator==(), Print(), and Serialize().
uint8_t ns3::PbbMessage::GetHopLimit | ( | void | ) | const |
Calling this while HasHopLimit is False is undefined. Make sure you check it first. This will be checked by an assert in debug builds.
Definition at line 1094 of file packetbb.cc.
References HasHopLimit(), m_hopLimit, NS_ASSERT, and NS_LOG_FUNCTION.
Referenced by operator==(), Print(), and Serialize().
Address ns3::PbbMessage::GetOriginatorAddress | ( | void | ) | const |
Calling this while HasOriginatorAddress is False is undefined. Make sure you check it first. This will be checked by an assert in debug builds.
Definition at line 1071 of file packetbb.cc.
References HasOriginatorAddress(), m_originatorAddress, NS_ASSERT, and NS_LOG_FUNCTION.
Referenced by operator==(), ns3::PbbMessageIpv4::PrintOriginatorAddress(), ns3::PbbMessageIpv6::PrintOriginatorAddress(), ns3::PbbMessageIpv4::SerializeOriginatorAddress(), and ns3::PbbMessageIpv6::SerializeOriginatorAddress().
uint16_t ns3::PbbMessage::GetSequenceNumber | ( | void | ) | const |
Calling this while HasSequenceNumber is False is undefined. Make sure you check it first. This will be checked by an assert in debug builds.
Definition at line 1140 of file packetbb.cc.
References HasSequenceNumber(), m_sequenceNumber, NS_ASSERT, and NS_LOG_FUNCTION.
Referenced by operator==(), Print(), and Serialize().
uint32_t ns3::PbbMessage::GetSerializedSize | ( | void | ) | const |
Definition at line 1404 of file packetbb.cc.
References AddressBlockBegin(), AddressBlockEnd(), GetAddressLength(), ns3::PbbTlvBlock::GetSerializedSize(), HasHopCount(), HasHopLimit(), HasOriginatorAddress(), HasSequenceNumber(), m_tlvList, and NS_LOG_FUNCTION.
uint8_t ns3::PbbMessage::GetType | ( | void | ) | const |
Definition at line 1049 of file packetbb.cc.
References m_type, and NS_LOG_FUNCTION.
Referenced by operator==(), Print(), and Serialize().
bool ns3::PbbMessage::HasHopCount | ( | void | ) | const |
Tests whether or not this message has a hop count.
Definition at line 1125 of file packetbb.cc.
References m_hasHopCount, and NS_LOG_FUNCTION.
Referenced by GetHopCount(), GetSerializedSize(), operator==(), Print(), and Serialize().
bool ns3::PbbMessage::HasHopLimit | ( | void | ) | const |
Tests whether or not this message has a hop limit.
If this is set, messages should not hop further than this limit.
Definition at line 1102 of file packetbb.cc.
References m_hasHopLimit, and NS_LOG_FUNCTION.
Referenced by GetHopLimit(), GetSerializedSize(), operator==(), Print(), and Serialize().
bool ns3::PbbMessage::HasOriginatorAddress | ( | void | ) | const |
Tests whether or not this message has an originator address.
Definition at line 1079 of file packetbb.cc.
References m_hasOriginatorAddress, and NS_LOG_FUNCTION.
Referenced by GetOriginatorAddress(), GetSerializedSize(), operator==(), Print(), and Serialize().
bool ns3::PbbMessage::HasSequenceNumber | ( | void | ) | const |
Tests whether or not this message has a sequence number.
Definition at line 1148 of file packetbb.cc.
References m_hasSequenceNumber, and NS_LOG_FUNCTION.
Referenced by GetSequenceNumber(), GetSerializedSize(), operator==(), Print(), and Serialize().
bool ns3::PbbMessage::operator!= | ( | const PbbMessage & | other | ) | const |
Definition at line 1718 of file packetbb.cc.
bool ns3::PbbMessage::operator== | ( | const PbbMessage & | other | ) | const |
Definition at line 1630 of file packetbb.cc.
References AddressBlockBegin(), AddressBlockEnd(), AddressBlockSize(), GetAddressLength(), GetHopCount(), GetHopLimit(), GetOriginatorAddress(), GetSequenceNumber(), GetType(), HasHopCount(), HasHopLimit(), HasOriginatorAddress(), HasSequenceNumber(), and m_tlvList.
void ns3::PbbMessage::Print | ( | std::ostream & | os | ) | const |
Pretty-prints the contents of this message.
os | a stream object to print to. |
Definition at line 1575 of file packetbb.cc.
References NS_LOG_FUNCTION.
void ns3::PbbMessage::Print | ( | std::ostream & | os, |
int | level | ||
) | const |
Pretty-prints the contents of this message, with specified indentation.
os | a stream object to print to. |
level | level of indentation. |
This probably never needs to be called by users. This is used when recursively printing sub-objects.
Definition at line 1582 of file packetbb.cc.
References AddressBlockBegin(), AddressBlockEnd(), GetAddressLength(), GetHopCount(), GetHopLimit(), GetSequenceNumber(), GetType(), HasHopCount(), HasHopLimit(), HasOriginatorAddress(), HasSequenceNumber(), m_tlvList, NS_LOG_FUNCTION, ns3::PbbTlvBlock::Print(), and PrintOriginatorAddress().
|
protectedpure virtual |
Implemented in ns3::PbbMessageIpv6, and ns3::PbbMessageIpv4.
Referenced by Print().
void ns3::PbbMessage::Serialize | ( | Buffer::Iterator & | start | ) | const |
Serializes this message into the specified buffer.
start | a reference to the point in a buffer to begin serializing. |
Users should not need to call this. Blocks will be deserialized by their containing packet.
Definition at line 1443 of file packetbb.cc.
References AddressBlockBegin(), AddressBlockEnd(), GetAddressLength(), ns3::Buffer::Iterator::GetDistanceFrom(), GetHopCount(), GetHopLimit(), GetSequenceNumber(), GetType(), HasHopCount(), HasHopLimit(), HasOriginatorAddress(), HasSequenceNumber(), m_tlvList, MHAS_HOP_COUNT, MHAS_HOP_LIMIT, MHAS_ORIG, MHAS_SEQ_NUM, ns3::Buffer::Iterator::Next(), NS_LOG_FUNCTION, ns3::PbbTlvBlock::Serialize(), SerializeOriginatorAddress(), visualizer.core::start(), ns3::Buffer::Iterator::WriteHtonU16(), and ns3::Buffer::Iterator::WriteU8().
|
protectedpure virtual |
Implemented in ns3::PbbMessageIpv6, and ns3::PbbMessageIpv4.
Referenced by Serialize().
void ns3::PbbMessage::SetHopCount | ( | uint8_t | hopcount | ) |
Sets the current number of hops this message has traveled.
hopcount | the current number of hops |
Definition at line 1109 of file packetbb.cc.
References m_hasHopCount, m_hopCount, and NS_LOG_FUNCTION.
Referenced by Deserialize(), and PbbTestSuite::PbbTestSuite().
void ns3::PbbMessage::SetHopLimit | ( | uint8_t | hoplimit | ) |
Sets the maximum number of hops this message should travel.
hoplimit | the limit to set |
Definition at line 1086 of file packetbb.cc.
References m_hasHopLimit, m_hopLimit, and NS_LOG_FUNCTION.
Referenced by Deserialize(), and PbbTestSuite::PbbTestSuite().
void ns3::PbbMessage::SetOriginatorAddress | ( | Address | address | ) |
Sets the address for the node that created this packet.
address | the originator address. |
Definition at line 1063 of file packetbb.cc.
References m_hasOriginatorAddress, m_originatorAddress, and NS_LOG_FUNCTION.
Referenced by Deserialize(), and PbbTestSuite::PbbTestSuite().
void ns3::PbbMessage::SetSequenceNumber | ( | uint16_t | seqnum | ) |
Sets the sequence number of this message.
seqnum | the sequence number to set. |
Definition at line 1132 of file packetbb.cc.
References m_hasSequenceNumber, m_sequenceNumber, and NS_LOG_FUNCTION.
Referenced by Deserialize(), and PbbTestSuite::PbbTestSuite().
void ns3::PbbMessage::SetType | ( | uint8_t | type | ) |
Sets the type for this message.
type | the type to set. |
Definition at line 1042 of file packetbb.cc.
References m_type, and NS_LOG_FUNCTION.
Referenced by Deserialize(), and PbbTestSuite::PbbTestSuite().
Definition at line 1213 of file packetbb.cc.
References ns3::PbbTlvBlock::Back(), m_tlvList, and NS_LOG_FUNCTION.
Definition at line 1220 of file packetbb.cc.
References ns3::PbbTlvBlock::Back(), m_tlvList, and NS_LOG_FUNCTION.
PbbMessage::TlvIterator ns3::PbbMessage::TlvBegin | ( | void | ) |
Definition at line 1157 of file packetbb.cc.
References ns3::PbbTlvBlock::Begin(), m_tlvList, and NS_LOG_FUNCTION.
PbbMessage::ConstTlvIterator ns3::PbbMessage::TlvBegin | ( | void | ) | const |
Definition at line 1164 of file packetbb.cc.
References ns3::PbbTlvBlock::Begin(), m_tlvList, and NS_LOG_FUNCTION.
void ns3::PbbMessage::TlvClear | ( | void | ) |
Removes all message TLVs from this block.
Definition at line 1269 of file packetbb.cc.
References ns3::PbbTlvBlock::Clear(), m_tlvList, and NS_LOG_FUNCTION.
bool ns3::PbbMessage::TlvEmpty | ( | void | ) | const |
Definition at line 1192 of file packetbb.cc.
References ns3::PbbTlvBlock::Empty(), m_tlvList, and NS_LOG_FUNCTION.
PbbMessage::TlvIterator ns3::PbbMessage::TlvEnd | ( | void | ) |
Definition at line 1171 of file packetbb.cc.
References ns3::PbbTlvBlock::End(), m_tlvList, and NS_LOG_FUNCTION.
PbbMessage::ConstTlvIterator ns3::PbbMessage::TlvEnd | ( | void | ) | const |
Definition at line 1178 of file packetbb.cc.
References ns3::PbbTlvBlock::End(), m_tlvList, and NS_LOG_FUNCTION.
PbbMessage::TlvIterator ns3::PbbMessage::TlvErase | ( | PbbMessage::TlvIterator | position | ) |
Removes the message TLV at the specified position.
position | an Iterator pointing to the message TLV to erase. |
Definition at line 1255 of file packetbb.cc.
References ns3::PbbTlvBlock::Erase(), m_tlvList, and NS_LOG_FUNCTION.
PbbMessage::TlvIterator ns3::PbbMessage::TlvErase | ( | PbbMessage::TlvIterator | first, |
PbbMessage::TlvIterator | last | ||
) |
Removes all message TLVs from [first, last) (includes first, not includes last).
first | an Iterator pointing to the first message TLV to erase (inclusive). |
last | an Iterator pointing to the element past the last message TLV to erase. |
Definition at line 1262 of file packetbb.cc.
References ns3::PbbTlvBlock::Erase(), m_tlvList, and NS_LOG_FUNCTION.
Definition at line 1199 of file packetbb.cc.
References ns3::PbbTlvBlock::Front(), m_tlvList, and NS_LOG_FUNCTION.
Definition at line 1206 of file packetbb.cc.
References ns3::PbbTlvBlock::Front(), m_tlvList, and NS_LOG_FUNCTION.
void ns3::PbbMessage::TlvPopBack | ( | void | ) |
Removes a message TLV from the back of this message.
Definition at line 1248 of file packetbb.cc.
References m_tlvList, NS_LOG_FUNCTION, and ns3::PbbTlvBlock::PopBack().
void ns3::PbbMessage::TlvPopFront | ( | void | ) |
Removes a message TLV from the front of this message.
Definition at line 1234 of file packetbb.cc.
References m_tlvList, NS_LOG_FUNCTION, and ns3::PbbTlvBlock::PopFront().
Appends a message TLV to the back of this message.
tlv | a smart pointer to the message TLV to append. |
Definition at line 1241 of file packetbb.cc.
References m_tlvList, NS_LOG_FUNCTION, and ns3::PbbTlvBlock::PushBack().
Referenced by PbbTestSuite::PbbTestSuite().
Prepends a message TLV to the front of this message.
tlv | a smart pointer to the message TLV to prepend. |
Definition at line 1227 of file packetbb.cc.
References m_tlvList, NS_LOG_FUNCTION, and ns3::PbbTlvBlock::PushFront().
int ns3::PbbMessage::TlvSize | ( | void | ) | const |
Definition at line 1185 of file packetbb.cc.
References m_tlvList, NS_LOG_FUNCTION, and ns3::PbbTlvBlock::Size().
|
private |
Definition at line 1025 of file packetbb.h.
Referenced by AddressBlockBack(), AddressBlockBegin(), AddressBlockClear(), AddressBlockEmpty(), AddressBlockEnd(), AddressBlockErase(), AddressBlockFront(), AddressBlockPopBack(), AddressBlockPopFront(), AddressBlockPushBack(), AddressBlockPushFront(), and AddressBlockSize().
|
private |
Definition at line 1028 of file packetbb.h.
Referenced by GetAddressLength(), and PbbMessage().
|
private |
Definition at line 1036 of file packetbb.h.
Referenced by HasHopCount(), PbbMessage(), and SetHopCount().
|
private |
Definition at line 1033 of file packetbb.h.
Referenced by HasHopLimit(), PbbMessage(), and SetHopLimit().
|
private |
Definition at line 1030 of file packetbb.h.
Referenced by HasOriginatorAddress(), PbbMessage(), and SetOriginatorAddress().
|
private |
Definition at line 1039 of file packetbb.h.
Referenced by HasSequenceNumber(), PbbMessage(), and SetSequenceNumber().
|
private |
Definition at line 1037 of file packetbb.h.
Referenced by GetHopCount(), and SetHopCount().
|
private |
Definition at line 1034 of file packetbb.h.
Referenced by GetHopLimit(), and SetHopLimit().
|
private |
Definition at line 1031 of file packetbb.h.
Referenced by GetOriginatorAddress(), and SetOriginatorAddress().
|
private |
Definition at line 1040 of file packetbb.h.
Referenced by GetSequenceNumber(), and SetSequenceNumber().
|
private |
Definition at line 1024 of file packetbb.h.
Referenced by Deserialize(), GetSerializedSize(), operator==(), Print(), Serialize(), TlvBack(), TlvBegin(), TlvClear(), TlvEmpty(), TlvEnd(), TlvErase(), TlvFront(), TlvPopBack(), TlvPopFront(), TlvPushBack(), TlvPushFront(), and TlvSize().
|
private |
Definition at line 1027 of file packetbb.h.