AFI
Advanced Forwarding Interface
|
![]() |
Base class for all Aft data classes. More...
#include <AftData.h>
Public Member Functions | |
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... | |
virtual uint32_t | append (AftDataBytes &newData) |
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... | |
Protected Member Functions | |
void | setBitLength (uint32_t newBitLength) |
Set the bitlength of the data. More... | |
Protected Attributes | |
uint32_t | _bitLength |
Size of encapsulated data in bits. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const AftData &aData) |
Define << class operator to append description to an output stream. More... | |
Base class for all Aft data classes.
|
inline |
Base constructor for data objects.
[in] | newBitLength | Length in bits of data |
|
inlinevirtual |
Append contents of data object to AftDataBytes vector.
[in] | data | Reference to AftDataBytes vector to append to |
Reimplemented in AftDataLabel, AftDataEtherAddr, AftDataIP6Addr, AftDataIP4Addr, AftDataPrefix, AftDataString, and AftDataInt.
|
inline |
|
inline |
|
inlinevirtual |
Compare data.
[in] | aData | Reference to data to compare against |
Reimplemented in AftDataEtherAddr, AftDataIP6Addr, AftDataIP4Addr, AftDataPrefix, AftDataString, and AftDataInt.
|
inlinevirtual |
Reimplemented in AftDataLabel, AftDataEtherAddr, AftDataIP6Addr, AftDataIP4Addr, AftDataPrefix, AftDataString, and AftDataInt.
|
inlinevirtual |
Append a description of the data to an output stream.
[in] | os | Reference to output stream to append description to |
Reimplemented in AftDataLabel, AftDataEtherAddr, AftDataIP6Addr, AftDataIP4Addr, AftDataPrefix, AftDataString, and AftDataInt.
|
inline |
Comparator for data.
[in] | aData | Reference to data to compare against |
|
inlineprotected |
Set the bitlength of the data.
[in] | bitLength | Value to set the bitlength to |
|
friend |
Define << class operator to append description to an output stream.
[in] | os | Reference to output stream to append to |
[in] | aData | Reference to data object to append description of to stream |