4 #ifndef DUNE_PDELAB_COMMON_PARTITIONINFOPROVIDER_HH
5 #define DUNE_PDELAB_COMMON_PARTITIONINFOPROVIDER_HH
9 #include <dune/grid/common/gridenums.hh>
30 return _contained_partitions.test(static_cast<unsigned char>(partition));
36 return _contained_partitions;
44 _contained_partitions.reset();
50 _contained_partitions |= r._contained_partitions;
60 _contained_partitions = partitions;
66 _contained_partitions = r._contained_partitions;
80 for (; begin != end; ++begin)
97 static const PartitionInfoProvider& reference(
const PartitionInfoProvider* provider)
102 std::bitset<6> _contained_partitions;
109 #endif // DUNE_PDELAB_COMMON_PARTITIONINFOPROVIDER_HH
Mixin class for providing information about contained grid partitions.
Definition: partitioninfoprovider.hh:22
void mergePartitionSet(const PartitionInfoProvider &r)
Adds all partitions contained in r the set of contained partitions.
Definition: partitioninfoprovider.hh:48
void setPartitionSet(const PartitionInfoProvider &r)
Copies the set of contained partitions from r.
Definition: partitioninfoprovider.hh:64
void setPartitionSet(const std::bitset< 6 > &partitions)
Sets the set of contained partitions to the passed-in value.
Definition: partitioninfoprovider.hh:58
void clearPartitionSet()
Empties the set of contained partitions.
Definition: partitioninfoprovider.hh:42
bool containsPartition(PartitionType partition) const
Returns whether this ordering contains entities with PartitionType partition.
Definition: partitioninfoprovider.hh:28
std::bitset< 6 > containedPartitions() const
Returns the internal representation of the set of contained entities.
Definition: partitioninfoprovider.hh:34
void mergePartitionSets(It begin, It end)
Adds the partitions from all PartitionInfoProviders in the range [begin,end).
Definition: partitioninfoprovider.hh:77