Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Nektar::StdRegions::cmpop Struct Reference

#include <StdPyrExp.h>

Public Member Functions

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

Detailed Description

Definition at line 51 of file StdPyrExp.h.

Member Function Documentation

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

Definition at line 53 of file StdPyrExp.h.

54  {
55  if (a.get<0>() < b.get<0>())
56  {
57  return true;
58  }
59  if (a.get<0>() > b.get<0>())
60  {
61  return false;
62  }
63 
64  if (a.get<1>() < b.get<1>())
65  {
66  return true;
67  }
68  if (a.get<1>() > b.get<1>())
69  {
70  return false;
71  }
72 
73  if (a.get<2>() < b.get<2>())
74  {
75  return true;
76  }
77 
78  return false;
79  }