15#ifndef dealii_fe_component_mask_h
16#define dealii_fe_component_mask_h
94 template <
typename =
void>
96 "Implicit conversions from std::vector<bool> to ComponentMask are deprecated!")
124 set(const
unsigned int index, const
bool value);
151 operator[](const
unsigned int component_index) const;
180 numbers::invalid_unsigned_int) const;
190 numbers::invalid_unsigned_int) const;
237 "The number of selected components in a mask "
238 "must be greater than zero.");
248 friend
std::ostream &
276 : component_mask(component_mask)
281 const bool initializer)
282 : component_mask(n_components, initializer)
339 [](
const bool selected) { return selected; });
380 else if (
mask.component_mask.empty())
403 else if (
mask.component_mask.empty())
bool operator[](const unsigned int component_index) const
bool represents_n_components(const unsigned int n) const
ComponentMask operator&(const ComponentMask &mask) const
void set(const unsigned int index, const bool value)
std::size_t memory_consumption() const
bool represents_the_all_selected_mask() const
bool operator!=(const ComponentMask &mask) const
std::vector< bool > component_mask
unsigned int size() const
unsigned int n_selected_components(const unsigned int overall_number_of_components=numbers::invalid_unsigned_int) const
ComponentMask operator|(const ComponentMask &mask) const
unsigned int first_selected_component(const unsigned int overall_number_of_components=numbers::invalid_unsigned_int) const
bool operator==(const ComponentMask &mask) const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_DEPRECATED_WITH_COMMENT(comment)
#define DEAL_II_NAMESPACE_CLOSE
#define Assert(cond, exc)
#define AssertDimension(dim1, dim2)
#define AssertIndexRange(index, range)
#define DeclExceptionMsg(Exception, defaulttext)
static ::ExceptionBase & ExcNoComponentSelected()
static ::ExceptionBase & ExcMessage(std::string arg1)
static const unsigned int invalid_unsigned_int