bmv2
Designing your own switch target with bmv2
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Typedefs
stacks.h File Reference

Go to the source code of this file.

Classes

class  bm::StackIface
 
class  bm::Stack< T, ShiftImpl >
 

Typedefs

using bm::HeaderStack = detail::MyStack< Header >
 
using bm::HeaderUnionStack = detail::MyStack< HeaderUnion >
 

Typedef Documentation

◆ HeaderStack

using bm::HeaderStack = typedef detail::MyStack<Header>

Convenience alias for stacks of headers A HeaderStack reference can be used in an action primitive. For example:

struct my_primitive : public ActionPrimitive<HeaderStack &, const Data &> {
void operator ()(HeaderStack &header_stack, const Data &num) {
// ...
};

◆ HeaderUnionStack

using bm::HeaderUnionStack = typedef detail::MyStack<HeaderUnion>

Convenience alias for stacks of header unions A HeaderUnionStack reference can be used in an action primitive. For example:

struct my_primitive
: public ActionPrimitive<HeaderUnionStack &, const Data &> {
void operator ()(HeaderUnionStack &header_union_stack, const Data &num) {
// ...
};