|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_ENUM_H__
17 #define __VOM_ENUM_H__
60 m_desc +=
":" + e.m_desc;
83 operator int()
const {
return (m_value); }
88 int value()
const {
return (m_value); }
The VPP Object Model (VOM) library.
bool operator==(const enum_base &e) const
Comparison operator.
enum_base & operator|=(const enum_base &e)
bitwise or assignemnt
enum_base operator|(const enum_base &e1) const
bitwise or
enum_base(int value, const std::string desc)
Constructor of an enum - takes value and string description.
int value() const
Return the value of the enum - same as integer conversion.
A template base class for all enum types.
virtual ~enum_base()
Constructor.
const std::string & to_string() const
convert to string format for debug purposes
enum_base & operator=(const enum_base &e)
Assignment.
bool operator!=(const enum_base &e) const
Comparison operator.