95 class UBPFListElement :
public ICastable {
100 UBPFListElement(EBPFType *type,
const cstring name) : type(type), name(name) {}
101 virtual ~UBPFListElement() {}
103 DECLARE_TYPEINFO(UBPFListElement);
106 class Padding :
public UBPFListElement {
108 unsigned widthInBytes;
110 Padding(
const cstring name,
unsigned widthInBytes)
111 : UBPFListElement(
nullptr, name), widthInBytes(widthInBytes) {}
113 DECLARE_TYPEINFO(Padding, UBPFListElement);
119 std::vector<UBPFListElement *> elements;
123 explicit UBPFListType(
const IR::Type_List *lst);