FD.io VPP
v19.01.2-3-gf61a1a8
Vector Packet Processing
|
A HW::item is data that is either to be written to or read from VPP/HW. More...
Public Member Functions | |
item (const T &data) | |
Constructor. More... | |
item () | |
Constructor. More... | |
item (rc_t rc) | |
Constructor. More... | |
item (const T &data, rc_t rc) | |
Constructor. More... | |
~item ()=default | |
Destructor. More... | |
bool | operator== (const item< T > &i) const |
Comparison operator. More... | |
item & | operator= (const item &other) |
Copy assignment. More... | |
T & | data () |
Return the data read/written. More... | |
const T & | data () const |
Const reference to the data. More... | |
rc_t | rc () const |
Get the HW return code. More... | |
void | set (const rc_t &rc) |
Set the HW return code - should only be called from the family of Command objects. More... | |
operator bool () const | |
Return true if the HW item is configred in HW. More... | |
bool | update (const item &desired) |
update the item to the desired state. More... | |
std::string | to_string () const |
convert to string format for debug purposes More... | |
template<> | |
std::string | to_string () const |
template<> | |
std::string | to_string () const |
template<> | |
std::string | to_string () const |
bool Specialisation for HW::item to_string More... | |
template<> | |
std::string | to_string () const |
uint Specialisation for HW::item to_string More... | |
A HW::item is data that is either to be written to or read from VPP/HW.
The item is a pair of the data written/read and the result of that operation.
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
Destructor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::string VOM::HW::item< bool >::to_string | ( | void | ) | const |
std::string VOM::HW::item< unsigned int >::to_string | ( | void | ) | const |
std::string VOM::HW::item< bool >::to_string | ( | ) | const |
bool Specialisation for HW::item to_string
std::string VOM::HW::item< unsigned int >::to_string | ( | ) | const |
uint Specialisation for HW::item to_string
|
inline |