|
AFI
Advanced Forwarding Interface
|
![]() |
Data class for all integers. More...
#include <AftData.h>
Public Types | |
|
typedef std::shared_ptr < AftDataInt > | Ptr |
| Pointer type for all AftData integers. | |
Public Member Functions | |
| AftDataInt (uint64_t newValue, uint32_t newBitLength) | |
| Constructor for general scalar value. More... | |
| const uint64_t | value () const |
| const uint32_t | value32 () const |
| const uint16_t | value16 () const |
| const uint8_t | value8 () 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... | |
Public Member Functions inherited from AftData | |
| 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 AftDataInt::Ptr | create (const uint8_t &newValue) |
| Factory generator for general 8 bit scalar value. More... | |
| static AftDataInt::Ptr | create (const uint16_t &newValue) |
| Factory generator for general 16 bit scalar value. More... | |
| static AftDataInt::Ptr | create (const uint32_t &newValue) |
| Factory generator for general 32 bit scalar value. More... | |
| static AftDataInt::Ptr | create (const uint64_t &newValue) |
| Factory generator for general 64 bit scalar value. More... | |
| static AftDataInt::Ptr | create (const uint64_t &newValue, uint32_t newBitLength) |
| Factory generator for general scalar value. More... | |
Protected Attributes | |
| uint64_t | _value |
| Scalar value of integer data. | |
Protected Attributes inherited from AftData | |
| uint32_t | _bitLength |
| Size of encapsulated data in bits. | |
Additional Inherited Members | |
Protected Member Functions inherited from AftData | |
| void | setBitLength (uint32_t newBitLength) |
| Set the bitlength of the data. More... | |
Data class for all integers.
|
inline |
Constructor for general scalar value.
| [in] | newValue | Scalar value to represent as data |
| [in] | newBitLength | Bitlength of the 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 general 8 bit scalar value.
| [in] | newValue | Scalar value to represent as data |
|
inlinestatic |
Factory generator for general 16 bit scalar value.
| [in] | newValue | Scalar value to represent as data |
|
inlinestatic |
Factory generator for general 32 bit scalar value.
| [in] | newValue | Scalar value to represent as data |
|
inlinestatic |
Factory generator for general 64 bit scalar value.
| [in] | newValue | Scalar value to represent as data |
|
inlinestatic |
Factory generator for general scalar value.
| [in] | newValue | Scalar value to represent as 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 |
|
inline |
|
inline |
|
inline |
1.8.6