A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::PbbAddressBlockIpv4 Class Reference

Concrete IPv4 specific PbbAddressBlock. More...

#include <packetbb.h>

+ Inheritance diagram for ns3::PbbAddressBlockIpv4:
+ Collaboration diagram for ns3::PbbAddressBlockIpv4:

Public Member Functions

 PbbAddressBlockIpv4 ()
virtual ~PbbAddressBlockIpv4 ()
- Public Member Functions inherited from ns3::PbbAddressBlock
 PbbAddressBlock ()
virtual ~PbbAddressBlock ()
Address AddressBack (void) const
AddressIterator AddressBegin (void)
ConstAddressIterator AddressBegin (void) const
void AddressClear (void)
 Removes all addresses from this block.
bool AddressEmpty (void) const
AddressIterator AddressEnd (void)
ConstAddressIterator AddressEnd (void) const
AddressIterator AddressErase (AddressIterator position)
 Removes the address at the specified position.
AddressIterator AddressErase (AddressIterator first, AddressIterator last)
 Removes all addresses from [first, last) (includes first, not includes last).
Address AddressFront (void) const
AddressIterator AddressInsert (AddressIterator position, const Address value)
 Inserts an address at the specified position in this block.
void AddressPopBack (void)
 Removes an address from the back of this block.
void AddressPopFront (void)
 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 (void) const
void Deserialize (Buffer::Iterator &start)
 Deserializes an address block from the specified buffer.
uint32_t GetSerializedSize (void) const
bool operator!= (const PbbAddressBlock &other) const
bool operator== (const PbbAddressBlock &other) const
uint8_t PrefixBack (void) const
PrefixIterator PrefixBegin (void)
ConstPrefixIterator PrefixBegin (void) const
void PrefixClear (void)
 Removes all prefixes from this block.
bool PrefixEmpty (void) const
PrefixIterator PrefixEnd (void)
ConstPrefixIterator PrefixEnd (void) const
PrefixIterator PrefixErase (PrefixIterator position)
 Removes the prefix at the specified position.
PrefixIterator PrefixErase (PrefixIterator first, PrefixIterator last)
 Removes all prefixes from [first, last) (includes first, not includes last).
uint8_t PrefixFront (void) const
PrefixIterator PrefixInsert (PrefixIterator position, const uint8_t value)
 Inserts a prefix at the specified position in this block.
void PrefixPopBack (void)
 Removes a prefix from the back of this block.
void PrefixPopFront (void)
 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 (void) 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 (void)
const Ptr< PbbAddressTlvTlvBack (void) const
TlvIterator TlvBegin (void)
ConstTlvIterator TlvBegin (void) const
void TlvClear (void)
 Removes all address TLVs from this block.
bool TlvEmpty (void) const
TlvIterator TlvEnd (void)
ConstTlvIterator TlvEnd (void) const
TlvIterator TlvErase (TlvIterator position)
 Removes the address TLV at the specified position.
TlvIterator TlvErase (TlvIterator first, TlvIterator last)
 Removes all address TLVs from [first, last) (includes first, not includes last).
Ptr< PbbAddressTlvTlvFront (void)
const Ptr< PbbAddressTlvTlvFront (void) const
TlvIterator TlvInsert (TlvIterator position, const Ptr< PbbTlv > value)
 Inserts an address TLV at the specified position in this block.
void TlvPopBack (void)
 Removes an address TLV from the back of this message.
void TlvPopFront (void)
 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 (void) const
- Public Member Functions inherited from ns3::SimpleRefCount< PbbAddressBlock >
 SimpleRefCount ()
 SimpleRefCount (const SimpleRefCount &o)
uint32_t GetReferenceCount (void) const
SimpleRefCountoperator= (const SimpleRefCount &o)
void Ref (void) const
void Unref (void) const

Protected Member Functions

virtual Address DeserializeAddress (uint8_t *buffer) const
virtual uint8_t GetAddressLength (void) const
virtual void PrintAddress (std::ostream &os, ConstAddressIterator iter) const
virtual void SerializeAddress (uint8_t *buffer, ConstAddressIterator iter) const

Additional Inherited Members

- Public Types inherited from ns3::PbbAddressBlock
typedef std::list< Address >
::iterator 
AddressIterator
typedef std::list< Address >
::const_iterator 
ConstAddressIterator
typedef std::list< uint8_t >
::const_iterator 
ConstPrefixIterator
typedef
PbbAddressTlvBlock::ConstIterator 
ConstTlvIterator
typedef std::list< uint8_t >
::iterator 
PrefixIterator
typedef
PbbAddressTlvBlock::Iterator 
TlvIterator
- Static Public Member Functions inherited from ns3::SimpleRefCount< PbbAddressBlock >
static void Cleanup (void)

Detailed Description

Concrete IPv4 specific PbbAddressBlock.

This address block will only contain IPv4 addresses.

Definition at line 1469 of file packetbb.h.

Constructor & Destructor Documentation

ns3::PbbAddressBlockIpv4::PbbAddressBlockIpv4 ( )

Definition at line 2345 of file packetbb.cc.

ns3::PbbAddressBlockIpv4::~PbbAddressBlockIpv4 ( )
virtual

Definition at line 2349 of file packetbb.cc.

Member Function Documentation

Address ns3::PbbAddressBlockIpv4::DeserializeAddress ( uint8_t *  buffer) const
protectedvirtual

Implements ns3::PbbAddressBlock.

Definition at line 2366 of file packetbb.cc.

References ns3::PbbAddressBlock::Deserialize().

+ Here is the call graph for this function:

uint8_t ns3::PbbAddressBlockIpv4::GetAddressLength ( void  ) const
protectedvirtual

Implements ns3::PbbAddressBlock.

Definition at line 2354 of file packetbb.cc.

void ns3::PbbAddressBlockIpv4::PrintAddress ( std::ostream &  os,
ConstAddressIterator  iter 
) const
protectedvirtual

Implements ns3::PbbAddressBlock.

Definition at line 2372 of file packetbb.cc.

References ns3::Ipv4Address::ConvertFrom(), and ns3::Ipv4Address::Print().

+ Here is the call graph for this function:

void ns3::PbbAddressBlockIpv4::SerializeAddress ( uint8_t *  buffer,
ConstAddressIterator  iter 
) const
protectedvirtual

Implements ns3::PbbAddressBlock.

Definition at line 2360 of file packetbb.cc.

References ns3::Ipv4Address::ConvertFrom(), and ns3::Ipv4Address::Serialize().

+ Here is the call graph for this function:


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