Plugins
ug::CompareDeg Struct Reference

#include <cr_reorder.h>

Public Member Functions

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

Private Attributes

const std::vector< size_t > & m_degree
 storage field of connections of each index More...
 

Detailed Description

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

◆ CompareDeg()

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

constructor, passing field with connections for each index

Member Function Documentation

◆ operator()()

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

comparison operator

References m_degree.

Member Data Documentation

◆ m_degree

const std::vector<size_t>& ug::CompareDeg::m_degree
private

storage field of connections of each index

Referenced by operator()().


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