template<typename MeshEntity, typename ComparisonPolicy = std::function<bool (flag_Type, flag_Type)>>
class LifeV::Predicates::EntityFlagInterrogator< MeshEntity, ComparisonPolicy >
A simple predicate to test the boolean flag on a mesh entity.
MeshEntity must have a method flag_Type flag();
The ComparisonPolicy passed as (possible) second template parameter must be a functor capable of being constructed from a bool (*)(flag_Type const&, flag_Type const &) and so that bool operator()(flag_Type const&, flag_Type const &) is defined. By default it is a boost function and the class uses the testOneSet policy by default Usage: if you want a predicate that tests if a boolean flag is equal to a given flag MYFLAG you create a object of type
which can now be used on all std algorithms operating on containers of mesh entities
- Author
- Luca Formaggia
Definition at line 155 of file MeshEntityContainer.hpp.