P4C
The P4 Compiler
Loading...
Searching...
No Matches
PHV::v2::SomeContScopeAllocResult Struct Reference

#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.
 
ContScopeAllocResultfront ()
 
bool ok () const
 
size_t size () const
 

Public Attributes

const AllocErrorerr = nullptr
 
std::vector< ContScopeAllocResultresults
 
std::vector< const TxScore * > scores
 

Detailed Description

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).