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 1390 of file dof_object.h.

Member Function Documentation

◆ operator()()

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

Definition at line 1392 of file dof_object.h.

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

1394  {
1395  libmesh_assert (a);
1396  libmesh_assert (b);
1397 
1398  if (a->processor_id() < b->processor_id())
1399  return true;
1400  if (b->processor_id() < a->processor_id())
1401  return false;
1402 
1403  return a->id() < b->id();
1404  }
libmesh_assert(ctx)

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