AFI
Advanced Forwarding Interface
|
![]() |
Data class for Ethernet MAC addresses. More...
#include <AftData.h>
Public Types | |
typedef std::shared_ptr < AftDataEtherAddr > | Ptr |
Pointer type for all AftData ethernet addresses. | |
Public Member Functions | |
AftDataEtherAddr (AftDataBytes newAddress) | |
Constructor for Ethernet address. More... | |
AftDataEtherAddr (uint8_t *newAddress) | |
Constructor for Ethernet address. More... | |
AftDataEtherAddr (std::string prefixString) | |
Constructor for Ethernet address. More... | |
const AftDataBytes & | data () const |
const uint8_t * | dataArray () 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 AftDataEtherAddr::Ptr | create (AftDataBytes newAddress) |
Factory generator for Ethernet address. More... | |
static AftDataEtherAddr::Ptr | create (uint8_t *newAddress) |
Factory generator for Ethernet address. More... | |
static AftDataEtherAddr::Ptr | create (std::string prefixString) |
Factory generator for Ethernet address. More... | |
Protected Attributes | |
AftDataBytes | _data |
Encapsulated Ethernet MAC 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 Ethernet MAC addresses.
|
inline |
Constructor for Ethernet address.
[in] | newAddress | MAC address as a byte vector to represent in data |
|
inline |
Constructor for Ethernet address.
[in] | newAddress | MAC address as a C-style byte array to represent in data |
|
inline |
Constructor for Ethernet address.
[in] | prefixString | Ethernet 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 Ethernet address.
[in] | newAddress | MAC address as a byte vector to represent in data |
|
inlinestatic |
Factory generator for Ethernet address.
[in] | newAddress | Ethernet address as a C-style byte array to represent in data |
|
inlinestatic |
Factory generator for Ethernet address.
[in] | prefixString | Ethernet address as a dot-notation string to represent in data |
|
inline |
|
inline |
|
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.