LifeV
CompareAccordingToLocalId< MeshEntity, Policy > Class Template Reference

Compare according to local ID. More...

#include <MeshEntityContainer.hpp>

+ Collaboration diagram for CompareAccordingToLocalId< MeshEntity, Policy >:

Public Member Functions

 CompareAccordingToLocalId (Policy const &p=std::less< ID >())
 Constructor. More...
 
bool operator() (MeshEntity const &a, MeshEntity const &b)
 

Private Attributes

const Policy M_policy
 

Detailed Description

template<typename MeshEntity, typename Policy = std::function<bool ( ID, ID )>>
class LifeV::Comparers::CompareAccordingToLocalId< MeshEntity, Policy >

Compare according to local ID.

It compares according to the ID (local ID) of a MeshEntity and it relies on std comparison operators It defaults to std::less<ID>. We rely on the fact that std::less<ID>(ID a, ID b) is defined (otherwise the user must supply it).

Definition at line 73 of file MeshEntityContainer.hpp.

Constructor & Destructor Documentation

◆ CompareAccordingToLocalId()

CompareAccordingToLocalId ( Policy const &  p = std::less<ID>())
inline

Constructor.

The constructor can receive anything which is convertible the chosen policy type. This allows great flexibility (maybe too much!)

Definition at line 81 of file MeshEntityContainer.hpp.

Member Function Documentation

◆ operator()()

bool operator() ( MeshEntity const &  a,
MeshEntity const &  b 
)
inline

Definition at line 83 of file MeshEntityContainer.hpp.

Field Documentation

◆ M_policy

const Policy M_policy
private

Definition at line 89 of file MeshEntityContainer.hpp.


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