16 #ifndef dealii_fe_block_mask_h 17 #define dealii_fe_block_mask_h 19 #include <deal.II/base/config.h> 21 #include <deal.II/base/exceptions.h> 22 #include <deal.II/base/memory_consumption.h> 28 DEAL_II_NAMESPACE_OPEN
104 BlockMask(
const unsigned int n_blocks,
const bool initializer);
130 bool operator[](
const unsigned int block_index)
const;
219 friend std::ostream &
241 : block_mask(block_mask)
246 : block_mask(n_blocks, initializer)
295 [](
const bool selected) {
return selected; });
310 for (
unsigned int c = 0; c <
block_mask.size(); ++c)
343 std::vector<bool> new_mask(
block_mask.size());
344 for (
unsigned int i = 0; i <
block_mask.size(); ++i)
365 std::vector<bool> new_mask(
block_mask.size());
366 for (
unsigned int i = 0; i <
block_mask.size(); ++i)
388 DEAL_II_NAMESPACE_CLOSE
bool represents_the_all_selected_mask() const
static const unsigned int invalid_unsigned_int
#define AssertDimension(dim1, dim2)
friend std::ostream & operator<<(std::ostream &out, const BlockMask &mask)
static ::ExceptionBase & ExcIndexRange(int arg1, int arg2, int arg3)
bool operator==(const BlockMask &mask) const
static ::ExceptionBase & ExcMessage(std::string arg1)
BlockMask operator|(const BlockMask &mask) const
#define Assert(cond, exc)
bool represents_n_blocks(const unsigned int n) const
BlockMask operator &(const BlockMask &mask) const
OutputOperator< VectorType > & operator<<(OutputOperator< VectorType > &out, unsigned int step)
std::vector< bool > block_mask
unsigned int first_selected_block(const unsigned int overall_number_of_blocks=numbers::invalid_unsigned_int) const
unsigned int n_selected_blocks(const unsigned int overall_number_of_blocks=numbers::invalid_unsigned_int) const
bool operator[](const unsigned int block_index) const
unsigned int size() const
bool operator!=(const BlockMask &mask) const
std::size_t memory_consumption() const