OGS
NumLib::detail::LineByLocationAndComponentComparator Struct Reference

Detailed Description

Definition at line 64 of file ComponentGlobalIndexDict.h.

#include <ComponentGlobalIndexDict.h>

Public Member Functions

bool operator() (Line const &a, Line const &b) const

Member Function Documentation

◆ operator()()

bool NumLib::detail::LineByLocationAndComponentComparator::operator() ( Line const & a,
Line const & b ) const
inline

Definition at line 66 of file ComponentGlobalIndexDict.h.

67 {
68 if (a.location < b.location)
69 {
70 return true;
71 }
72 if (b.location < a.location)
73 {
74 return false;
75 }
76
77 // a.loc == b.loc
78 return a.comp_id < b.comp_id;
79 }

References NumLib::detail::Line::comp_id, and NumLib::detail::Line::location.


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