16 #ifndef dealii_fe_block_mask_h 17 #define dealii_fe_block_mask_h 19 #include <deal.II/base/config.h> 20 #include <deal.II/base/exceptions.h> 21 #include <deal.II/base/memory_consumption.h> 26 DEAL_II_NAMESPACE_OPEN
102 const bool initializer);
112 unsigned int size ()
const;
127 bool operator[] (
const unsigned int block_index)
const;
236 block_mask (block_mask)
242 const bool initializer)
244 block_mask (n_blocks, initializer)
303 for (
unsigned int i=0; i<
block_mask.size(); ++i)
322 for (
unsigned int c=0; c<
block_mask.size(); ++c)
357 std::vector<bool> new_mask (
block_mask.size());
358 for (
unsigned int i=0; i<
block_mask.size(); ++i)
381 std::vector<bool> new_mask (
block_mask.size());
382 for (
unsigned int i=0; i<
block_mask.size(); ++i)
406 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)
BlockMask operator&(const BlockMask &mask) const
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
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