Loading [MathJax]/extensions/tex2jax.js
ug4
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ug::CompareDegree Struct Reference

help class to provide compare operator for indices based on their degree More...

Public Member Functions

 CompareDegree (const std::vector< std::vector< size_t > > &vInfo)
 constructor, passing field with connections for each index
 
bool operator() (size_t i, size_t j)
 comparison operator
 

Private Attributes

const std::vector< std::vector< size_t > > & m_vCon
 storage field of connections of each index
 

Detailed Description

help class to provide compare operator for indices based on their degree

This class is used to provide an ordering for indices. The ordering relation is based on the connectivity-degree, i.e. on the number of connections the index has. The indices with less connections are ordered first.

Constructor & Destructor Documentation

◆ CompareDegree()

ug::CompareDegree::CompareDegree ( const std::vector< std::vector< size_t > > &  vInfo)
inline

constructor, passing field with connections for each index

Member Function Documentation

◆ operator()()

bool ug::CompareDegree::operator() ( size_t  i,
size_t  j 
)
inline

comparison operator

References m_vCon, and UG_ASSERT.

Member Data Documentation

◆ m_vCon

const std::vector<std::vector<size_t> >& ug::CompareDegree::m_vCon
private

storage field of connections of each index

Referenced by operator()().


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