|
bmv2
Designing your own switch target with bmv2
|

Public Member Functions | |
| Counter & | get_counter (size_t idx) |
Access the counter at position idx, asserts if bad idx. More... | |
| const Counter & | get_counter (size_t idx) const |
Access the counter at position idx, asserts if bad idx. More... | |
| Counter & | operator[] (size_t idx) |
Access the counter at position idx, asserts if bad idx. More... | |
| const Counter & | operator[] (size_t idx) const |
Access the counter at position idx, asserts if bad idx. More... | |
| iterator | begin () |
| NC. More... | |
| const_iterator | begin () const |
| NC. More... | |
| iterator | end () |
| NC. More... | |
| const_iterator | end () const |
| NC. More... | |
| size_t | size () const |
| Return the size of the CounterArray (i.e. number of counters it includes) More... | |
Public Member Functions inherited from bm::NamedP4Object | |
| 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... | |
CounterArray corresponds to the counter standard P4 v1.02 object. A CounterArray reference can be used as a P4 primitive parameter. For example:
|
inline |
NC.
|
inline |
NC.
|
inline |
NC.
|
inline |
NC.
|
inline |
Access the counter at position idx, asserts if bad idx.
|
inline |
Access the counter at position idx, asserts if bad idx.
|
inline |
Access the counter at position idx, asserts if bad idx.
|
inline |
Access the counter at position idx, asserts if bad idx.
|
inline |
Return the size of the CounterArray (i.e. number of counters it includes)
1.8.17