bmv2
Designing your own switch target with bmv2
|
Public Member Functions | |
const std::string & | get_name () const |
Get the name of the P4 instance. More... | |
p4object_id_t | get_id () const |
Get the compiler-provided id. More... | |
NamedP4Object (const NamedP4Object &other)=delete | |
Deleted copy constructor. More... | |
NamedP4Object & | operator= (const NamedP4Object &other)=delete |
Deleted copy assignment operator. More... | |
NamedP4Object (NamedP4Object &&other)=default | |
Default move constructor. More... | |
NamedP4Object & | operator= (NamedP4Object &&other)=default |
Default assignment operator. More... | |
NamedP4Object is used as a base class for all the bmv2 classes with are used to represent named P4 objects (e.g. Parser for P4 parser
objects). It just stores the name of the P4 instance and a compiler-provided id, which is different from the id of other objects of the same class.
|
delete |
Deleted copy constructor.
|
default |
Default move constructor.
|
inline |
Get the compiler-provided id.
|
inline |
Get the name of the P4 instance.
|
delete |
Deleted copy assignment operator.
|
default |
Default assignment operator.