libMesh
Loading...
Searching...
No Matches
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 1380 of file dof_object.h.

Member Function Documentation

◆ operator()()

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

Definition at line 1382 of file dof_object.h.

1384 {
1385 libmesh_assert (a);
1386 libmesh_assert (b);
1387
1388 if (a->processor_id() < b->processor_id())
1389 return true;
1390 if (b->processor_id() < a->processor_id())
1391 return false;
1392
1393 return a->id() < b->id();
1394 }
static const Real b
libmesh_assert(ctx)

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


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