OGS
NumLib::detail::LineByLocationAndComponentComparator Struct Reference

Detailed Description

Definition at line 73 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 75 of file ComponentGlobalIndexDict.h.

76 {
77 if (a.location < b.location)
78 {
79 return true;
80 }
81 if (b.location < a.location)
82 {
83 return false;
84 }
85
86 // a.loc == b.loc
87 return a.comp_id < b.comp_id;
88 }

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


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