All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
Nektar::Utilities::element_id_less_than Struct Reference

Define element ordering based on ID. More...

#include <MeshElements.h>

Public Types

typedef boost::shared_ptr
< Element

Public Member Functions

bool operator() (const pT a, const pT b) const

Detailed Description

Define element ordering based on ID.

Definition at line 1078 of file MeshElements.h.

Member Typedef Documentation

Definition at line 1080 of file MeshElements.h.

Member Function Documentation

bool Nektar::Utilities::element_id_less_than::operator() ( const pT  a,
const pT  b 
) const

Definition at line 1081 of file MeshElements.h.

// check for 0
if (a.get() == 0)
// if b is also 0, then they are equal, hence a is not
// less than b
return b.get() != 0;
else if (b.get() == 0)
return false;
return a->GetId() < b->GetId();