PipeQueue yielding contractable pipes first (or last), in order of descending (or ascending) degree. More...
#include <ogdf/cluster/sync_plan/PipeOrder.h>
Public Member Functions | |
PipeQueueByDegreePreferContract (SyncPlan *pq, bool invertDegree=false, bool invertContract=false) | |
bool | comparePipes (const Pipe *x, const Pipe *y) const |
bool | isQueue1 (Pipe *p) const override |
Public Member Functions inherited from ogdf::sync_plan::DoublePipeQueue< PipeQueueByDegreePreferContract, PipeQueueByDegreePreferContract > | |
void | addPipe (Pipe *p) override |
void | clear () override |
bool | empty () override |
Pipe * | getTop () override |
void | removePipe (Pipe *pipe) override |
int | size () override |
Public Member Functions inherited from ogdf::sync_plan::SimplePipeQueue< PipeQueueByDegreePreferContract > | |
SimplePipeQueue ()=default | |
SimplePipeQueue (const SimplePipeQueue ©)=delete | |
SimplePipeQueue (SimplePipeQueue &&move)=delete | |
SimplePipeQueue & | operator= (const SimplePipeQueue ©)=delete |
SimplePipeQueue & | operator= (SimplePipeQueue &&move)=delete |
void | rebuild (List< Pipe > &pipes_list) override |
Public Member Functions inherited from ogdf::sync_plan::PipeQueue | |
virtual | ~PipeQueue ()=default |
Public Attributes | |
bool | invert_contract |
bool | invert_degree |
SyncPlan * | PQ |
Additional Inherited Members | |
Public Types inherited from ogdf::sync_plan::DoublePipeQueue< PipeQueueByDegreePreferContract, PipeQueueByDegreePreferContract > | |
using | Base = SimplePipeQueue< PipeQueueByDegreePreferContract > |
using | PipesHeap2 = PriorityQueue< Pipe *, PipeCmpPtr< PipeQueueByDegreePreferContract > > |
using | PipesHeapHandle2 = typename PipesHeap2::handle |
Public Types inherited from ogdf::sync_plan::SimplePipeQueue< PipeQueueByDegreePreferContract > | |
using | PipesHeap = PriorityQueue< Pipe *, PipeCmpPtr< PipeQueueByDegreePreferContract > > |
using | PipesHeapHandle = typename PipesHeap::handle |
Protected Attributes inherited from ogdf::sync_plan::DoublePipeQueue< PipeQueueByDegreePreferContract, PipeQueueByDegreePreferContract > | |
std::unique_ptr< PipesHeap2 > | pipes_heap2 |
Protected Attributes inherited from ogdf::sync_plan::SimplePipeQueue< PipeQueueByDegreePreferContract > | |
std::unique_ptr< PipesHeap > | pipes_heap |
PipeQueue yielding contractable pipes first (or last), in order of descending (or ascending) degree.
Definition at line 260 of file PipeOrder.h.
|
inlineexplicit |
pq | the SyncPlan instance we're working on. |
invertDegree | if true, will order by ascending degree; if false (the default), will order by descending degree. |
invertContract | if true, will yield non-contractable pipes first; if false (the default), will yield contractable pipes first. |
Definition at line 270 of file PipeOrder.h.
bool ogdf::sync_plan::PipeQueueByDegreePreferContract::comparePipes | ( | const Pipe * | x, |
const Pipe * | y | ||
) | const |
|
overridevirtual |
bool ogdf::sync_plan::PipeQueueByDegreePreferContract::invert_contract |
Definition at line 263 of file PipeOrder.h.
bool ogdf::sync_plan::PipeQueueByDegreePreferContract::invert_degree |
Definition at line 263 of file PipeOrder.h.
SyncPlan* ogdf::sync_plan::PipeQueueByDegreePreferContract::PQ |
Definition at line 262 of file PipeOrder.h.