libMesh
Public Member Functions | List of all members
libMesh::CompareDofObjectsByPIDAndThenID Struct Reference

#include <dof_object.h>

Public Member Functions

bool operator() (const DofObject *a, const DofObject *b) const
 

Detailed Description

Definition at line 1366 of file dof_object.h.

Member Function Documentation

◆ operator()()

bool libMesh::CompareDofObjectsByPIDAndThenID::operator() ( const DofObject a,
const DofObject b 
) const
inline

Definition at line 1368 of file dof_object.h.

References b, libMesh::DofObject::id(), libMesh::libmesh_assert(), and libMesh::DofObject::processor_id().

1370  {
1371  libmesh_assert (a);
1372  libmesh_assert (b);
1373 
1374  if (a->processor_id() < b->processor_id())
1375  return true;
1376  if (b->processor_id() < a->processor_id())
1377  return false;
1378 
1379  return a->id() < b->id();
1380  }
libmesh_assert(ctx)
static const Real b

The documentation for this struct was generated from the following file: