40 #include <lifev/core/mesh/InternalEntitySelector.hpp> 53 InternalEntitySelector::InternalEntitySelector() :
54 M_watermarkFlag ( defMarkFlag )
57 InternalEntitySelector::InternalEntitySelector (
const markerID_Type& w ) :
61 SetFlagAccordingToWatermarks::SetFlagAccordingToWatermarks (
const flag_Type& flagToSet,
62 const std::vector<markerID_Type>& watermarks,
63 const flagPolicy_ptr& flagPolicy) :
64 M_flagToSet (flagToSet),
65 M_watermarks (watermarks),
66 M_flagPolicy (flagPolicy)
68 std::sort (M_watermarks.begin(), M_watermarks.end() );
74 bool InternalEntitySelector::operator() (
markerID_Type const& test )
const 76 return ( test ==
markerID_Type ( 0 ) || test > M_watermarkFlag );
82 void SetFlagAccordingToMarkerRanges::insert ( rangeID_Type
const& key,
flag_Type flag )
91 const_iterator_Type it = M_map.upper_bound ( std::make_pair ( m, markerID_Type ( 0 ) ) );
92 if ( it-- != M_map.begin() )
96 if ( m >= first && m <= second )
98 return std::make_pair ( it->second,
true );
102 return std::make_pair ( flag_Type ( 0 ),
false );
uint32_type flag_Type
bit-flag with up to 32 different flags
ID markerID_Type
markerID_Type is the type used to store the geometric entity marker IDs
void updateInverseJacobian(const UInt &iQuadPt)