![]() |
P4C
The P4 Compiler
|
#include <allocator_base.h>
Public Member Functions | |
| SomeContScopeAllocResult (const AllocError *default_err) | |
| SomeContScopeAllocResult (ContScopeAllocResult &rst, const TxScore *score) | |
| void | collect (const ContScopeAllocResult &rst, const TxScore *score) |
| update the result list. | |
| ContScopeAllocResult & | front () |
| bool | ok () const |
| size_t | size () const |
Public Attributes | |
| const AllocError * | err = nullptr |
| std::vector< ContScopeAllocResult > | results |
| std::vector< const TxScore * > | scores |
SomeContScopeAllocResult will store multiple ContScoreAllocResult(s) of the highest score under different standards. They will be saved into the results vector and the index represents: 0: highest score overall. 1: highest score of not packing with any other field slices. 2: highest score of not packing with any other field slices and not introducing whole_container_set_only constraint. (i.e., not in mocha/dark container).