![]() |
P4C
The P4 Compiler
|
Public Member Functions | |
| SerializableContainer (const Container &container) | |
Public Member Functions inherited from PHV::Container | |
| Container () | |
| Container (const char *name, bool abort_if_invalid=true) | |
| Container (PHV::Type t, unsigned index) | |
| size_t | size () const |
| unsigned | log2sz () const |
| size_t | msb () const |
| size_t | lsb () const |
| PHV::Type | type () const |
| unsigned | index () const |
| bool | is (PHV::Kind k) const |
| bool | is (PHV::Size sz) const |
| operator bool () const | |
| Container | operator++ () |
| Container | operator++ (int) |
| bool | operator== (Container c) const |
| bool | operator!= (Container c) const |
| bool | operator< (Container c) const |
| cstring | toString () const |
- e.g., "B0" for container B0. | |
Construct a container from NOLINTNEXTLINE(runtime/explicit) | |
| SerializableContainer (const char *name, bool abort_if_invalid=true) | |
| SerializableContainer (PHV::Type t, unsigned index) | |
| void | toJSON (P4::JSONGenerator &json) const |
| JSON serialization/deserialization. | |
| static SerializableContainer | fromJSON (P4::JSONLoader &json) |
Additional Inherited Members | |
Protected Member Functions inherited from PHV::Container | |
| Container (Kind k, Size s, unsigned i) | |
Protected Attributes inherited from PHV::Container | |
| unsigned | index_ |
| Type | type_ |
Static Protected Attributes inherited from PHV::Container | |
| static constexpr unsigned | MAX_INDEX = std::numeric_limits<unsigned>::max() |
|
inline |
Construct a container from kind and index - e.g., (Kind::B, 0) for container B0.