16 #ifndef dealii_fe_component_mask_h 17 #define dealii_fe_component_mask_h 19 #include <deal.II/base/config.h> 21 #include <deal.II/base/exceptions.h> 22 #include <deal.II/base/memory_consumption.h> 27 DEAL_II_NAMESPACE_OPEN
112 ComponentMask(
const unsigned int n_components,
const bool initializer);
118 set(
const unsigned int index,
const bool value);
144 bool operator[](
const unsigned int component_index)
const;
229 "The number of selected components in a mask " 230 "must be greater than zero.");
240 friend std::ostream &
262 : component_mask(component_mask)
267 const bool initializer)
420 DEAL_II_NAMESPACE_CLOSE
ComponentMask operator&(const ComponentMask &mask) const
bool operator!=(const ComponentMask &mask) const
static const unsigned int invalid_unsigned_int
#define AssertDimension(dim1, dim2)
unsigned int n_selected_components(const unsigned int overall_number_of_components=numbers::invalid_unsigned_int) const
std::vector< bool > component_mask
#define AssertIndexRange(index, range)
void set(const unsigned int index, const bool value)
bool represents_n_components(const unsigned int n) const
static::ExceptionBase & ExcMessage(std::string arg1)
#define Assert(cond, exc)
#define DeclExceptionMsg(Exception, defaulttext)
unsigned int size() const
static::ExceptionBase & ExcNoComponentSelected()
bool represents_the_all_selected_mask() const
unsigned int first_selected_component(const unsigned int overall_number_of_components=numbers::invalid_unsigned_int) const
bool operator[](const unsigned int component_index) const
std::size_t memory_consumption() const
bool operator==(const ComponentMask &mask) const
ComponentMask operator|(const ComponentMask &mask) const
friend std::ostream & operator<<(std::ostream &out, const ComponentMask &mask)