libMesh
Loading...
Searching...
No Matches
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.

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

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


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