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

Comparison object to use with DofObject pointers. More...

#include <dof_object.h>

Public Member Functions

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

Detailed Description

Comparison object to use with DofObject pointers.

This sorts by id(), so when we iterate over a set of DofObjects we visit the objects in order of increasing ID.

Definition at line 1378 of file dof_object.h.

Member Function Documentation

◆ operator()()

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

Definition at line 1380 of file dof_object.h.

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

1382  {
1383  libmesh_assert (a);
1384  libmesh_assert (b);
1385 
1386  return a->id() < b->id();
1387  }
libmesh_assert(ctx)

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