dune-grid
2.4.1-rc2
|
A set of PartitionType values. More...
#include <dune/grid/common/partitionset.hh>
Public Member Functions | |
template<unsigned int p> | |
struct PartitionSet< partitions|p > | operator+ (const PartitionSet< p > &set) const |
Returns a new PartitionSet that also contains the partitions in set. More... | |
template<unsigned int p> | |
struct PartitionSet< partitions &~p > | operator- (const PartitionSet< p > &set) const |
Returns a new PartitionSet that does not contain the partitions in set. More... | |
template<unsigned int p2> | |
DUNE_CONSTEXPR bool | operator== (PartitionSet< p2 >) const |
Tests whether two PartitionsSet are equal. More... | |
template<unsigned int p2> | |
DUNE_CONSTEXPR bool | operator!= (PartitionSet< p2 >) const |
Tests whether two PartitionsSet are not equal. More... | |
Static Public Member Functions | |
static constexpr PartitionIteratorType | partitionIterator () |
Returns the PartitionIteratorType that can be used to iterate over the partitions in the set. More... | |
static DUNE_CONSTEXPR bool | contains (PartitionType pt) |
Tests whether the given PartitionType is contained in this set. More... | |
template<unsigned int contained_partitions> | |
static DUNE_CONSTEXPR bool | contains (PartitionSet< contained_partitions >) |
Tests whether the given PartitionSet is contained in this set. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const PartitionSet &) |
Writes the PartitionSet to an output stream. More... | |
Related Functions | |
(Note that these are not member functions.) | |
template<PartitionType p> | |
PartitionSet<(1<< p)> | partitionSet () |
Creates a PartitionSet for the given PartitionType. More... | |
A set of PartitionType values.
PartitionSet cotains a set of PartitionType values fixed at compile time. The contents of the set is encoded in the template parameter partitions, but the exact semantics are an implementation detail. PartitionSets can be combined by adding them up. They also support removing partitions by subtracting them.
partitions | Implementation-defined representation of the partition set. |
|
inlinestatic |
Tests whether the given PartitionType is contained in this set.
|
inlinestatic |
Tests whether the given PartitionSet is contained in this set.
|
inline |
Tests whether two PartitionsSet are not equal.
|
inline |
Returns a new PartitionSet that also contains the partitions in set.
|
inline |
Returns a new PartitionSet that does not contain the partitions in set.
|
inline |
Tests whether two PartitionsSet are equal.
|
inlinestatic |
Returns the PartitionIteratorType that can be used to iterate over the partitions in the set.
raises | a static assertion if the partitions do not correspond to a valid PartitionIteratorType. |
|
friend |
Writes the PartitionSet to an output stream.