Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 222 of file InputGmsh.cpp.

Member Function Documentation

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

Definition at line 224 of file InputGmsh.cpp.

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