![]() |
deal.II version GIT relicensing-7182-g951947b1c4 2026-11-26 10:30:01+00:00
|
A class which enumerates refinement possibilities for all supported ReferenceCell objects. More...
#include <deal.II/grid/refinement_choice.h>
A class which enumerates refinement possibilities for all supported ReferenceCell objects.
Not every RefinementChoice can be used with every reference cell. For example, RefinementChoices::CutX<dim> only makes sense for quadrilaterals and hexahedra. See ReferenceCell::is_compatible() for more information.
Definition at line 64 of file refinement_choice.h.
Public Member Functions | |
| constexpr | RefinementChoice () |
| constexpr | operator std::uint8_t () const |
| constexpr bool | operator== (const RefinementChoice< dim > &other_choice) const |
| constexpr bool | operator!= (const RefinementChoice< dim > &other_choice) const |
| std::string | to_string () const |
| constexpr RefinementChoice< dim > | operator| (const RefinementChoice< dim > &other_choice) const |
| constexpr RefinementChoice< dim > | operator& (const RefinementChoice< dim > &other_choice) const |
| constexpr RefinementChoice< dim > | operator~ () const |
| constexpr bool | is_anisotropic () const |
| constexpr bool | is_tetrahedral () const |
| constexpr unsigned int | new_tetrahedron_line () const |
Static Public Member Functions | |
| static constexpr RefinementChoice< dim > | cut_axis (const unsigned int i) |
Private Member Functions | |
| constexpr | RefinementChoice (const std::uint8_t kind) |
Private Attributes | |
| std::uint8_t | kind |
Static Private Attributes | |
| static constexpr std::uint8_t | isotropic_kind = dim == 0 ? 1 : (1 << dim) - 1 |
Friends | |
| template<int dim_> | |
| constexpr RefinementChoice< dim_ > | internal::make_refinement_choice_from_int (const std::uint8_t) |
|
inlineconstexpr |
Default constructor. Creates a RefinementChoices::None<dim>.
Definition at line 204 of file refinement_choice.h.
|
inlineexplicitconstexprprivate |
Constructor.
Definition at line 211 of file refinement_choice.h.
|
inlineconstexpr |
Conversion operator to the underlying integral type.
Definition at line 350 of file refinement_choice.h.
|
inlineconstexpr |
Comparison operator.
Definition at line 360 of file refinement_choice.h.
|
inlineconstexpr |
Comparison operator.
Definition at line 369 of file refinement_choice.h.
| std::string RefinementChoice< dim >::to_string | ( | ) | const |
Return a string representation of the present object, e.g., "CutX".
Definition at line 19 of file refinement_choice.cc.
|
inlineconstexpr |
Create a new RefinementChoice which is the union of the current object and other_choice.
other_choice == *this. Definition at line 378 of file refinement_choice.h.
|
inlineconstexpr |
Create a new RefinementChoice which is the intersection of the current object and other_choice.
other_choice == *this then this returns *this and otherwise it returns RefinementChoices::None<3>. Definition at line 411 of file refinement_choice.h.
|
inlineconstexpr |
Invert the RefinementChoice.
Definition at line 442 of file refinement_choice.h.
|
inlineconstexpr |
Return whether or not the refinement is anisotropic.
Definition at line 454 of file refinement_choice.h.
|
inlinestaticconstexpr |
Return the RefinementChoice corresponding to cutting a hypercube along the axis i. For example, if i == 0 and dim == 3 then the returned value is RefinementChoices::CutX<3>.
Definition at line 465 of file refinement_choice.h.
|
inlineconstexpr |
Return whether or not the present object is one of the RefinementChoices specific to tetrahedra.
Definition at line 479 of file refinement_choice.h.
|
inlineconstexpr |
Return the internal line for tetrahedral refinement. This function may only be called when *this is one of RefinementChoices::Cut49<3>, RefinementChoices::Cut57<3>, or RefinementChoices::Cut68<3>.
Definition at line 488 of file refinement_choice.h.
|
friend |
A kind of constructor – not quite private because it can be called by anyone, but at least hidden in an internal namespace.
|
staticconstexprprivate |
The value of RefinementChoice::kind corresponding to isotropic refinement.
Definition at line 178 of file refinement_choice.h.
|
private |
The variable that stores what this object actually corresponds to.
Definition at line 183 of file refinement_choice.h.