AFI
Advanced Forwarding Interface
|
![]() |
Data class for IPv4 addresses. More...
#include <AftData.h>
Public Types | |
typedef std::shared_ptr < AftDataIP4Addr > | Ptr |
Pointer type for all AftData IPv4 addresses. | |
Public Member Functions | |
AftDataIP4Addr (uint32_t newAddress, uint32_t newBitLength) | |
Constructor for IPv4 address. More... | |
AftDataIP4Addr (std::string prefixString) | |
Constructor for IPv4 address. More... | |
const uint32_t | value () const |
virtual uint32_t | append (AftDataBytes &aData) |
Append contents of data object to AftDataBytes vector. More... | |
virtual const std::string | dataClass () const |
virtual std::ostream & | description (std::ostream &os) const |
Append a description of the data to an output stream. More... | |
virtual int | compare (const AftData &aData) const |
Compare data. More... | |
![]() | |
AftData (uint32_t newBitLength) | |
Base constructor for data objects. More... | |
const uint32_t | bitLength () const |
const uint32_t | byteLength () const |
bool | operator== (const AftData &aData) const |
Comparator for data. More... | |
Static Public Member Functions | |
static AftDataIP4Addr::Ptr | create (uint32_t newAddress, uint32_t newBitLength) |
Factory generator for IPv4 address. More... | |
static AftDataIP4Addr::Ptr | create (std::string prefixString) |
Factory generator for IPv4 address. More... | |
Protected Attributes | |
uint32_t | _value |
Encapsulated IPv4 Address. | |
![]() | |
uint32_t | _bitLength |
Size of encapsulated data in bits. | |
Additional Inherited Members | |
![]() | |
void | setBitLength (uint32_t newBitLength) |
Set the bitlength of the data. More... | |
Data class for IPv4 addresses.
|
inline |
Constructor for IPv4 address.
[in] | newAddress | IPv4 address to represent in data |
[in] | newBitLength | Length of IPv4 address in bits (i.e. subnet length) |
|
inline |
Constructor for IPv4 address.
[in] | prefixString | IPv4 address as a dot-notation string to represent in data |
|
inlinevirtual |
Append contents of data object to AftDataBytes vector.
[in] | data | Reference to AftDataBytes vector to append to |
Reimplemented from AftData.
|
inlinevirtual |
Compare data.
[in] | aData | Reference to data to compare against |
Reimplemented from AftData.
|
inlinestatic |
Factory generator for IPv4 address.
[in] | newAddress | IPv4 address to represent in data |
[in] | newBitLength | Length of IPv4 address in bits (i.e. subnet length) |
|
inlinestatic |
Factory generator for IPv4 address.
[in] | prefixString | IPv4 address as a dot-notation string to represent in data |
|
inlinevirtual |
Reimplemented from AftData.
|
inlinevirtual |
Append a description of the data to an output stream.
[in] | os | Reference to output stream to append description to |
Reimplemented from AftData.
|
inline |