A block of Address TLVs (PbbAddressTlv).
More...
#include <packetbb.h>
List of all members.
Detailed Description
A block of Address TLVs (PbbAddressTlv).
Acts similar to a C++ STL container.
Member Function Documentation
- Returns:
- the last AddressTLV in this block.
Iterator ns3::PbbAddressTlvBlock::Begin |
( |
void |
|
) |
|
- Returns:
- an iterator to the first Address TLV in this block.
ConstIterator ns3::PbbAddressTlvBlock::Begin |
( |
void |
|
) |
const |
- Returns:
- a const iterator to the first Address TLV in this block.
Deserializes a block from the specified buffer.
- Parameters:
-
| 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.
bool ns3::PbbAddressTlvBlock::Empty |
( |
void |
|
) |
const |
- Returns:
- true if there are no Address TLVs in this block, false otherwise.
ConstIterator ns3::PbbAddressTlvBlock::End |
( |
void |
|
) |
const |
- Returns:
- a const iterator to the past-the-end element in this block.
Iterator ns3::PbbAddressTlvBlock::End |
( |
void |
|
) |
|
- Returns:
- an iterator to the past-the-end element in this block.
Iterator ns3::PbbAddressTlvBlock::Erase |
( |
Iterator |
position |
) |
|
Removes the Address TLV at the specified position.
- Parameters:
-
| position | an Iterator pointing to the Address TLV to erase. |
- Returns:
- an iterator pointing to the next Address TLV in the block.
Iterator ns3::PbbAddressTlvBlock::Erase |
( |
Iterator |
first, |
|
|
Iterator |
last | |
|
) |
| | |
Removes all Address TLVs from [first, last) (includes first, not includes last).
- Parameters:
-
| first | an Iterator pointing to the first Address TLV to erase (inclusive). |
| last | an Iterator pointing to the element past the last Address TLV to erase. |
- Returns:
- an iterator pointing to the next Address TLV in the block.
- Returns:
- the first Address TLV in this block.
uint32_t ns3::PbbAddressTlvBlock::GetSerializedSize |
( |
void |
|
) |
const |
- Returns:
- The size (in bytes) needed to serialize this block.
Iterator ns3::PbbAddressTlvBlock::Insert |
( |
Iterator |
position, |
|
|
const Ptr< PbbAddressTlv > |
tlv | |
|
) |
| | |
Inserts an Address TLV at the specified position in this block.
- Parameters:
-
| position | an Iterator pointing to the position in this block to insert the Address TLV. |
| tlv | a smart pointer to the Address TLV to insert. |
- Returns:
- An iterator pointing to the newly inserted Address TLV.
void ns3::PbbAddressTlvBlock::Print |
( |
std::ostream & |
os, |
|
|
int |
level | |
|
) |
| | const |
Pretty-prints the contents of this block, with specified indentation.
- Parameters:
-
| 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.
void ns3::PbbAddressTlvBlock::Print |
( |
std::ostream & |
os |
) |
const |
Pretty-prints the contents of this block.
- Parameters:
-
| os | a stream object to print to. |
Appends an Address TLV to the back of this block.
- Parameters:
-
| tlv | a smart pointer to the Address TLV to append. |
Prepends an Address TLV to the front of this block.
- Parameters:
-
| tlv | a smart pointer to the Address TLV to prepend. |
Serializes this block into the specified buffer.
- Parameters:
-
| start | a reference to the point in a buffer to begin serializing. |
Users should not need to call this. Blocks will be serialized by their containing packet.
int ns3::PbbAddressTlvBlock::Size |
( |
void |
|
) |
const |
- Returns:
- the number of Address TLVs in this block.
The documentation for this class was generated from the following file: