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

Public Member Functions

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

Detailed Description

Definition at line 221 of file InputGmsh.cpp.

Member Function Documentation

◆ operator()()

bool Nektar::Utilities::cmpop::operator() ( Mode const &  a,
Mode const &  b 
) const
inline

Definition at line 223 of file InputGmsh.cpp.

224  {
225  if (std::get<0>(a) < std::get<0>(b))
226  {
227  return true;
228  }
229  if (std::get<0>(a) > std::get<0>(b))
230  {
231  return false;
232  }
233  if (std::get<1>(a) < std::get<1>(b))
234  {
235  return true;
236  }
237  if (std::get<1>(a) > std::get<1>(b))
238  {
239  return false;
240  }
241  if (std::get<2>(a) < std::get<2>(b))
242  {
243  return true;
244  }
245 
246  return false;
247  }