LifeV
CompareAccordingToMarker< MeshEntity, Policy > Class Template Reference

Compare according to Marker ID. More...

#include <MeshEntityContainer.hpp>

+ Collaboration diagram for CompareAccordingToMarker< MeshEntity, Policy >:

Public Member Functions

 CompareAccordingToMarker (Policy const &p=std::less< markerID_Type >())
 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 (markerID_Type, markerID_Type)>>
class LifeV::Comparers::CompareAccordingToMarker< MeshEntity, Policy >

Compare according to Marker ID.

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

Definition at line 97 of file MeshEntityContainer.hpp.

Constructor & Destructor Documentation

◆ CompareAccordingToMarker()

CompareAccordingToMarker ( Policy const &  p = std::less<markerID_Type>())
inline

Constructor.

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

Definition at line 105 of file MeshEntityContainer.hpp.

Member Function Documentation

◆ operator()()

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

Definition at line 107 of file MeshEntityContainer.hpp.

Field Documentation

◆ M_policy

const Policy M_policy
private

Definition at line 113 of file MeshEntityContainer.hpp.


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