template<typename MeshEntity, typename ComparisonPolicy = std::function< bool (markerID_Type, markerID_Type)>>
class LifeV::Predicates::EntityMarkerIDInterrogator< MeshEntity, ComparisonPolicy >
A simple predicate to test the marker ID flag.
MeshEntity must have a method markerID_Type markerID();
The ComparisonPolicy passed as (possible) second template parameter must be a functor capable of being constructed from a bool (*)(markerID_Type const&, entityflag_Type const &) and so that bool operator()(markerID_Type const&, markerID_Type const &) is defined. By default we use the std::equal_to functor
Usage: if you want a predicate that tests if an markerID is equal to a given flag MYFLAG you create a object of type
EntityMarkerIDInterrogator<face_Type,ComparisonPolicy>(MYFLAG,mycomparisonpolicy())
which can now be used on all std algorithms operating on containers of mesh entities
- Author
- Luca Formaggia
Definition at line 196 of file MeshEntityContainer.hpp.