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> 28 DEAL_II_NAMESPACE_OPEN
113 ComponentMask(
const unsigned int n_components,
const bool initializer);
119 set(
const unsigned int index,
const bool value);
145 bool operator[](
const unsigned int component_index)
const;
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)
325 [](
const bool selected) {
return selected; });
419 DEAL_II_NAMESPACE_CLOSE
static const unsigned int invalid_unsigned_int
#define AssertDimension(dim1, dim2)
bool operator==(const ComponentMask &mask) const
bool operator[](const unsigned int component_index) const
bool operator!=(const ComponentMask &mask) const
std::vector< bool > component_mask
#define AssertIndexRange(index, range)
ComponentMask operator|(const ComponentMask &mask) const
bool represents_n_components(const unsigned int n) const
bool represents_the_all_selected_mask() const
void set(const unsigned int index, const bool value)
static ::ExceptionBase & ExcMessage(std::string arg1)
#define Assert(cond, exc)
#define DeclExceptionMsg(Exception, defaulttext)
static ::ExceptionBase & ExcNoComponentSelected()
unsigned int size() const
std::size_t memory_consumption() const
OutputOperator< VectorType > & operator<<(OutputOperator< VectorType > &out, unsigned int step)
unsigned int first_selected_component(const unsigned int overall_number_of_components=numbers::invalid_unsigned_int) const
unsigned int n_selected_components(const unsigned int overall_number_of_components=numbers::invalid_unsigned_int) const
unsigned int n_components(const DoFHandler< dim, spacedim > &dh)
friend std::ostream & operator<<(std::ostream &out, const ComponentMask &mask)
ComponentMask operator &(const ComponentMask &mask) const