Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

ogdf::CompactionConstraintGraph< ATYPE >::SegmentComparer Class Reference

Comparer class used for sorting segments by increasing position (given by segPos) such that two overlapping segments come in the order imposed by the embedding (given by secSort: segment which comes first has secSort = 0, the other has 1) More...

Public Member Functions

 SegmentComparer (const NodeArray< ATYPE > &segPos, const NodeArray< int > &secSort)
 
int compare (const node &x, const node &y) const
 

Private Attributes

const NodeArray< ATYPE > * m_pPos
 
const NodeArray< int > * m_pSec
 

Detailed Description

template<class ATYPE>
class ogdf::CompactionConstraintGraph< ATYPE >::SegmentComparer

Comparer class used for sorting segments by increasing position (given by segPos) such that two overlapping segments come in the order imposed by the embedding (given by secSort: segment which comes first has secSort = 0, the other has 1)

Definition at line 239 of file CompactionConstraintGraph.h.

Constructor & Destructor Documentation

◆ SegmentComparer()

template<class ATYPE >
ogdf::CompactionConstraintGraph< ATYPE >::SegmentComparer::SegmentComparer ( const NodeArray< ATYPE > &  segPos,
const NodeArray< int > &  secSort 
)
inline

Definition at line 242 of file CompactionConstraintGraph.h.

Member Function Documentation

◆ compare()

template<class ATYPE >
int ogdf::CompactionConstraintGraph< ATYPE >::SegmentComparer::compare ( const node x,
const node y 
) const
inline

Definition at line 248 of file CompactionConstraintGraph.h.

Member Data Documentation

◆ m_pPos

template<class ATYPE >
const NodeArray<ATYPE>* ogdf::CompactionConstraintGraph< ATYPE >::SegmentComparer::m_pPos
private

Definition at line 260 of file CompactionConstraintGraph.h.

◆ m_pSec

template<class ATYPE >
const NodeArray<int>* ogdf::CompactionConstraintGraph< ATYPE >::SegmentComparer::m_pSec
private

Definition at line 261 of file CompactionConstraintGraph.h.


The documentation for this class was generated from the following file: