dune-pdelab
2.4-dev
|
Mixin class for providing information about contained grid partitions. More...
#include <dune/pdelab/common/partitioninfoprovider.hh>
Public Member Functions | |
bool | containsPartition (PartitionType partition) const |
Returns whether this ordering contains entities with PartitionType partition. More... | |
std::bitset< 6 > | containedPartitions () const |
Returns the internal representation of the set of contained entities. More... | |
Protected Member Functions | |
void | clearPartitionSet () |
Empties the set of contained partitions. More... | |
void | mergePartitionSet (const PartitionInfoProvider &r) |
Adds all partitions contained in r the set of contained partitions. More... | |
void | setPartitionSet (const std::bitset< 6 > &partitions) |
Sets the set of contained partitions to the passed-in value. More... | |
void | setPartitionSet (const PartitionInfoProvider &r) |
Copies the set of contained partitions from r. More... | |
template<typename It > | |
void | mergePartitionSets (It begin, It end) |
Adds the partitions from all PartitionInfoProviders in the range [begin,end). More... | |
Mixin class for providing information about contained grid partitions.
This is a mixin class for orderings providing the common implementation of the Dune::PartitionType query interface. As the number of partition types is fixed, we can easily move the complete implementation into this mixin, only requiring the ordering to update the contained information using the protected API.
|
inlineprotected |
Empties the set of contained partitions.
Referenced by mergePartitionSets().
|
inline |
Returns the internal representation of the set of contained entities.
|
inline |
Returns whether this ordering contains entities with PartitionType partition.
Referenced by Dune::PDELab::GridFunctionSpaceBase< GridFunctionSpace, PowerCompositeGridFunctionSpaceTraits< GV, B, O, k > >::containsPartition().
|
inlineprotected |
Adds all partitions contained in r the set of contained partitions.
Referenced by mergePartitionSets().
|
inlineprotected |
Adds the partitions from all PartitionInfoProviders in the range [begin,end).
References clearPartitionSet(), and mergePartitionSet().
Referenced by Dune::PDELab::LocalOrderingBase< first_type< Children...>::type::Traits::GridView, first_type< Children...>::type::Traits::DOFIndex, first_type< Children...>::type::Traits::ContainerIndex >::LocalOrderingBase(), and Dune::PDELab::OrderingBase< Ordering::Traits::DOFIndex, Ordering::Traits::ContainerIndex >::OrderingBase().
|
inlineprotected |
Sets the set of contained partitions to the passed-in value.
Referenced by Dune::PDELab::ChunkedBlockOrdering< Ordering >::ChunkedBlockOrdering(), Dune::PDELab::DirectLeafLocalOrdering< OrderingTag, FEM, GV, DI, CI >::DirectLeafLocalOrdering(), Dune::PDELab::GridViewOrdering< LocalOrdering >::GridViewOrdering(), Dune::PDELab::LeafLocalOrdering< OrderingTag, FEM, GV, DI, CI >::LeafLocalOrdering(), Dune::PDELab::LeafOrderingBase< LocalOrdering >::LeafOrderingBase(), Dune::PDELab::PermutedOrdering< Ordering >::PermutedOrdering(), and Dune::PDELab::SubOrdering< typename GFS::Ordering, typename find_ordering_treepath_for_sub_gfs< typename GFS::Ordering, GFS, TreePath >::type >::update().
|
inlineprotected |
Copies the set of contained partitions from r.