Nektar++
Public Member Functions | List of all members
Nektar::MultiRegions::cmpop Struct Reference

#include <LocTraceToTraceMap.h>

Public Member Functions

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

Detailed Description

Definition at line 83 of file LocTraceToTraceMap.h.

Member Function Documentation

◆ operator()()

bool Nektar::MultiRegions::cmpop::operator() ( TraceInterpPoints const &  a,
TraceInterpPoints const &  b 
) const
inline

Definition at line 85 of file LocTraceToTraceMap.h.

87  {
88  if (std::get<0>(a) < std::get<0>(b))
89  {
90  return true;
91  }
92 
93  if (std::get<0>(b) < std::get<0>(a))
94  {
95  return false;
96  }
97 
98  if (std::get<1>(a) < std::get<1>(b))
99  {
100  return true;
101  }
102  if (std::get<1>(b) < std::get<1>(a))
103  {
104  return false;
105  }
106 
107  if (std::get<2>(a) < std::get<2>(b))
108  {
109  return true;
110  }
111 
112  if (std::get<2>(b) < std::get<2>(a))
113  {
114  return false;
115  }
116 
117  if (std::get<3>(a) < std::get<3>(b))
118  {
119  return true;
120  }
121 
122  return false;
123  }