16#ifndef dealii_fe_component_mask_h
17#define dealii_fe_component_mask_h
117 set(
const unsigned int index,
const bool value);
230 "The number of selected components in a mask "
231 "must be greater than zero.");
241 friend std::ostream &
263 : component_mask(component_mask)
268 const bool initializer)
269 : component_mask(n_components, initializer)
326 [](
const bool selected) { return selected; });
367 else if (
mask.component_mask.size() == 0)
390 else if (
mask.component_mask.size() == 0)
bool operator[](const unsigned int component_index) const
ComponentMask(const unsigned int n_components, const bool initializer)
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
friend std::ostream & operator<<(std::ostream &out, const ComponentMask &mask)
ComponentMask(const std::vector< bool > &component_mask)
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
std::ostream & operator<<(std::ostream &out, const ComponentMask &mask)
#define DEAL_II_NAMESPACE_OPEN
#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