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

Member Function Documentation

◆ operator()()

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

Definition at line 1356 of file dof_object.h.

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

1358  {
1359  libmesh_assert (a);
1360  libmesh_assert (b);
1361 
1362  return a->id() < b->id();
1363  }
libmesh_assert(ctx)
static const Real b

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