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;
241 block_mask (block_mask)
247 const bool initializer)
249 block_mask (n_blocks, initializer)
308 for (
unsigned int i=0; i<
block_mask.size(); ++i)
327 for (
unsigned int c=0; c<
block_mask.size(); ++c)
362 std::vector<bool> new_mask (
block_mask.size());
363 for (
unsigned int i=0; i<
block_mask.size(); ++i)
386 std::vector<bool> new_mask (
block_mask.size());
387 for (
unsigned int i=0; i<
block_mask.size(); ++i)
411 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