P4C
The P4 Compiler
|
#include <utils.h>
Public Types | |
using | const_iterator = std::vector<PHV::Container>::const_iterator |
Public Member Functions | |
ContainerGroup (PHV::Size size, bitvec container_group) | |
ContainerGroup (PHV::Size size, const std::vector< PHV::Container > containers) | |
const_iterator | begin () const |
bool | contains (PHV::Container c) const |
bool | empty () const |
const_iterator | end () const |
const ordered_set< PHV::Container > | getAllContainersOfKind (PHV::Kind kind) const |
bool | hasType (PHV::Type t) const |
bitvec | ids () const |
bool | is (PHV::Kind k) const |
bool | is (PHV::Size s) const |
size_t | size () const |
const std::set< PHV::Type > | types () const |
PHV::Size | width () const |
A set of PHV containers of the same size.
PHV::ContainerGroup::ContainerGroup | ( | PHV::Size | size, |
const std::vector< PHV::Container > | containers ) |
Creates a container group from a vector of containers. Fails catastrophically if containers
has containers not of size size
.
Creates a container group from a bitvec of container IDs. Fails catastrophically if container_group
has containers not of size size
.
|
inline |
is
in this group.
|
inline |
|
inline |
|
inline |
t
is present in this group.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |