A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::PbbAddressBlockIpv6 Class Reference

Concrete IPv6 specific PbbAddressBlock. More...

#include "packetbb.h"

+ Inheritance diagram for ns3::PbbAddressBlockIpv6:
+ Collaboration diagram for ns3::PbbAddressBlockIpv6:

Public Member Functions

 PbbAddressBlockIpv6 ()
 
 ~PbbAddressBlockIpv6 () override
 
- Public Member Functions inherited from ns3::PbbAddressBlock
 PbbAddressBlock ()
 
virtual ~PbbAddressBlock ()
 
Address AddressBack () const
 
AddressIterator AddressBegin ()
 
ConstAddressIterator AddressBegin () const
 
void AddressClear ()
 Removes all addresses from this block.
 
bool AddressEmpty () const
 
AddressIterator AddressEnd ()
 
ConstAddressIterator AddressEnd () const
 
AddressIterator AddressErase (AddressIterator first, AddressIterator last)
 Removes all addresses from [first, last) (includes first, not includes last).
 
AddressIterator AddressErase (AddressIterator position)
 Removes the address at the specified position.
 
Address AddressFront () const
 
AddressIterator AddressInsert (AddressIterator position, const Address value)
 Inserts an address at the specified position in this block.
 
void AddressPopBack ()
 Removes an address from the back of this block.
 
void AddressPopFront ()
 Removes an address from the front of this block.
 
void AddressPushBack (Address address)
 Appends an address to the back of this block.
 
void AddressPushFront (Address address)
 Prepends an address to the front of this block.
 
int AddressSize () const
 
void Deserialize (Buffer::Iterator &start)
 Deserializes an address block from the specified buffer.
 
uint32_t GetSerializedSize () const
 
bool operator!= (const PbbAddressBlock &other) const
 Inequality operator for PbbAddressBlock.
 
bool operator== (const PbbAddressBlock &other) const
 Equality operator for PbbAddressBlock.
 
uint8_t PrefixBack () const
 
PrefixIterator PrefixBegin ()
 
ConstPrefixIterator PrefixBegin () const
 
void PrefixClear ()
 Removes all prefixes from this block.
 
bool PrefixEmpty () const
 
PrefixIterator PrefixEnd ()
 
ConstPrefixIterator PrefixEnd () const
 
PrefixIterator PrefixErase (PrefixIterator first, PrefixIterator last)
 Removes all prefixes from [first, last) (includes first, not includes last).
 
PrefixIterator PrefixErase (PrefixIterator position)
 Removes the prefix at the specified position.
 
uint8_t PrefixFront () const
 
PrefixIterator PrefixInsert (PrefixIterator position, const uint8_t value)
 Inserts a prefix at the specified position in this block.
 
void PrefixPopBack ()
 Removes a prefix from the back of this block.
 
void PrefixPopFront ()
 Removes a prefix from the front of this block.
 
void PrefixPushBack (uint8_t prefix)
 Appends a prefix to the back of this block.
 
void PrefixPushFront (uint8_t prefix)
 Prepends a prefix to the front of this block.
 
int PrefixSize () const
 
void Print (std::ostream &os) const
 Pretty-prints the contents of this address block.
 
void Print (std::ostream &os, int level) const
 Pretty-prints the contents of this address block, with specified indentation.
 
void Serialize (Buffer::Iterator &start) const
 Serializes this address block into the specified buffer.
 
Ptr< PbbAddressTlvTlvBack ()
 
const Ptr< PbbAddressTlvTlvBack () const
 
TlvIterator TlvBegin ()
 
ConstTlvIterator TlvBegin () const
 
void TlvClear ()
 Removes all address TLVs from this block.
 
bool TlvEmpty () const
 
TlvIterator TlvEnd ()
 
ConstTlvIterator TlvEnd () const
 
TlvIterator TlvErase (TlvIterator first, TlvIterator last)
 Removes all address TLVs from [first, last) (includes first, not includes last).
 
TlvIterator TlvErase (TlvIterator position)
 Removes the address TLV at the specified position.
 
Ptr< PbbAddressTlvTlvFront ()
 
const Ptr< PbbAddressTlvTlvFront () const
 
TlvIterator TlvInsert (TlvIterator position, const Ptr< PbbTlv > value)
 Inserts an address TLV at the specified position in this block.
 
void TlvPopBack ()
 Removes an address TLV from the back of this message.
 
void TlvPopFront ()
 Removes an address TLV from the front of this message.
 
void TlvPushBack (Ptr< PbbAddressTlv > address)
 Appends an address TLV to the back of this message.
 
void TlvPushFront (Ptr< PbbAddressTlv > address)
 Prepends an address TLV to the front of this message.
 
int TlvSize () const
 
- Public Member Functions inherited from ns3::SimpleRefCount< PbbAddressBlock >
 SimpleRefCount ()
 Default constructor.
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor.
 
uint32_t GetReferenceCount () const
 Get the reference count of the object.
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment operator.
 
void Ref () const
 Increment the reference count.
 
void Unref () const
 Decrement the reference count.
 

Protected Member Functions

Address DeserializeAddress (uint8_t *buffer) const override
 Deserialize one address.
 
uint8_t GetAddressLength () const override
 Returns address length.
 
void PrintAddress (std::ostream &os, ConstAddressIterator iter) const override
 Print one or more addresses.
 
void SerializeAddress (uint8_t *buffer, ConstAddressIterator iter) const override
 Serialize one or more addresses.
 

Additional Inherited Members

- Public Types inherited from ns3::PbbAddressBlock
typedef std::list< Address >::iterator AddressIterator
 Address iterator.
 
typedef std::list< Address >::const_iterator ConstAddressIterator
 Address const iterator.
 
typedef std::list< uint8_t >::const_iterator ConstPrefixIterator
 Prefix const iterator.
 
typedef PbbAddressTlvBlock::ConstIterator ConstTlvIterator
 tlvblock const iterator
 
typedef std::list< uint8_t >::iterator PrefixIterator
 Prefix iterator.
 
typedef PbbAddressTlvBlock::Iterator TlvIterator
 tlvblock iterator
 

Detailed Description

Concrete IPv6 specific PbbAddressBlock.

This address block will only contain IPv6 addresses.

Definition at line 1637 of file packetbb.h.

Constructor & Destructor Documentation

◆ PbbAddressBlockIpv6()

ns3::PbbAddressBlockIpv6::PbbAddressBlockIpv6 ( )

Definition at line 2561 of file packetbb.cc.

References NS_LOG_FUNCTION.

◆ ~PbbAddressBlockIpv6()

ns3::PbbAddressBlockIpv6::~PbbAddressBlockIpv6 ( )
override

Definition at line 2566 of file packetbb.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

◆ DeserializeAddress()

Address ns3::PbbAddressBlockIpv6::DeserializeAddress ( uint8_t * buffer) const
overrideprotectedvirtual

Deserialize one address.

Parameters
bufferthe buffer to deserialize from
Returns
the address

Implements ns3::PbbAddressBlock.

Definition at line 2586 of file packetbb.cc.

References ns3::Ipv6Address::Deserialize(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

◆ GetAddressLength()

uint8_t ns3::PbbAddressBlockIpv6::GetAddressLength ( ) const
overrideprotectedvirtual

Returns address length.

Returns
Address length

Implements ns3::PbbAddressBlock.

Definition at line 2572 of file packetbb.cc.

References NS_LOG_FUNCTION.

◆ PrintAddress()

void ns3::PbbAddressBlockIpv6::PrintAddress ( std::ostream & os,
ConstAddressIterator iter ) const
overrideprotectedvirtual

Print one or more addresses.

Parameters
osthe output stream
iterthe iterator to the addresses

Implements ns3::PbbAddressBlock.

Definition at line 2593 of file packetbb.cc.

References ns3::Ipv6Address::ConvertFrom(), NS_LOG_FUNCTION, and ns3::Ipv6Address::Print().

+ Here is the call graph for this function:

◆ SerializeAddress()

void ns3::PbbAddressBlockIpv6::SerializeAddress ( uint8_t * buffer,
ConstAddressIterator iter ) const
overrideprotectedvirtual

Serialize one or more addresses.

Parameters
bufferthe buffer to serialize to
iterthe iterator to the addresses

Implements ns3::PbbAddressBlock.

Definition at line 2579 of file packetbb.cc.

References ns3::Ipv6Address::ConvertFrom(), NS_LOG_FUNCTION, and ns3::Ipv6Address::Serialize().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: