P4C
The P4 Compiler
Loading...
Searching...
No Matches
DecidePlacement::BacktrackPlacement Class Reference

Public Member Functions

 BacktrackPlacement (DecidePlacement &self, const Placed *p, const ordered_set< const GroupPlace * > &w, bool ib)
 
int get_num_placement_errors () const
 
const Placedget_placed () const
 
bool is_best_placement () const
 
bool is_resource_mode () const
 
bool is_same_backtrack_pass () const
 
const Placedoperator-> () const
 
BacktrackPlacementoperator= (const BacktrackPlacement &a)
 
void reset_best_placement ()
 
const Placedreset_place_table (ordered_set< const GroupPlace * > &w, bool bt_inc=true)
 

Public Attributes

bool tried = false
 

Detailed Description

encapsulates the data needed to backtrack and continue on an alternate placement path a BacktrackPlacement object can be created from any not-yet-placed Placed object and the worklist it was chosen from. calling reset_place_table will reset and place the Placed object, updating the worklist to continue from that point,