Factory class for a refinement rule. More...
#include <refinePreBuilder.hh>


Public Types | |
| enum | rTypes { None = 0, hRef = 1, pRef = 2, hpRef = 3 } |
Public Member Functions | |
| APrioriRefinementRuleFactory (const std::string text) | |
| Constructor taken a refinement rule inside a string. | |
| void | refine (hp2D::hpFull &prebuild) const |
Apply the refinement rule to the prebuilder class prebuild. | |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Private Member Functions | |
| void | getHPRefLevel_ (std::string &text) |
| Determine the refinement level for hp-refinement. | |
| void | getHRefLevel_ (std::string &text) |
| Determine the refinement level for h-refinement. | |
| concepts::Sequence< int > | getNumbers_ (std::string &text) |
| Returns a sequence of integer number taking from a string of the form "1|2". | |
| void | getPoly_ (std::string &text) |
| Determine the polynomial degree(s) | |
| void | getRefAttr_ (std::string &text) |
| Determine the attribute of cells in which the refinement rule should be applied. | |
| void | getRType_ (std::string &text) |
| Determine the refinement type. | |
| void | getToAttr_ (std::string &text) |
| Determine the attribute of edges and cells to which should be refined. | |
Private Attributes | |
| concepts::Level< 2 > | level_ |
| Level of refinement in the local directions of the cell. | |
| int | pMax_ [2] |
| Polynomial degree enhancement in the local directions of the cell. | |
| uint | refAttr_ |
| Attribute of cells in which the refinement rule should be applied. | |
| uint | refToEdgeAttr_ |
| Attribute of edges to which should be refined (for h- and hp-refinement). | |
| uint | refToVtxAttr_ |
| Attribute of corners to which should be refined (for h- and hp-refinement). | |
| enum rTypes | rType_ |
| Refinement type. | |
| std::string | text_ |
| The given string. | |
Factory class for a refinement rule.
Definition at line 78 of file refinePreBuilder.hh.
Definition at line 80 of file refinePreBuilder.hh.
| hp2D::APrioriRefinementRuleFactory::APrioriRefinementRuleFactory | ( | const std::string | text | ) |
Constructor taken a refinement rule inside a string.
| text | string with a refinement rule, e.g. "h1|0 in 1 -> v2". |
| void hp2D::APrioriRefinementRuleFactory::getHPRefLevel_ | ( | std::string & | text | ) | [private] |
Determine the refinement level for hp-refinement.
| void hp2D::APrioriRefinementRuleFactory::getHRefLevel_ | ( | std::string & | text | ) | [private] |
Determine the refinement level for h-refinement.
| concepts::Sequence<int> hp2D::APrioriRefinementRuleFactory::getNumbers_ | ( | std::string & | text | ) | [private] |
Returns a sequence of integer number taking from a string of the form "1|2".
| void hp2D::APrioriRefinementRuleFactory::getPoly_ | ( | std::string & | text | ) | [private] |
Determine the polynomial degree(s)
| void hp2D::APrioriRefinementRuleFactory::getRefAttr_ | ( | std::string & | text | ) | [private] |
Determine the attribute of cells in which the refinement rule should be applied.
| void hp2D::APrioriRefinementRuleFactory::getRType_ | ( | std::string & | text | ) | [private] |
Determine the refinement type.
| void hp2D::APrioriRefinementRuleFactory::getToAttr_ | ( | std::string & | text | ) | [private] |
Determine the attribute of edges and cells to which should be refined.
| virtual std::ostream& hp2D::APrioriRefinementRuleFactory::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
| void hp2D::APrioriRefinementRuleFactory::refine | ( | hp2D::hpFull & | prebuild | ) | const |
Apply the refinement rule to the prebuilder class prebuild.
Level of refinement in the local directions of the cell.
Definition at line 117 of file refinePreBuilder.hh.
int hp2D::APrioriRefinementRuleFactory::pMax_[2] [private] |
Polynomial degree enhancement in the local directions of the cell.
Definition at line 114 of file refinePreBuilder.hh.
uint hp2D::APrioriRefinementRuleFactory::refAttr_ [private] |
Attribute of cells in which the refinement rule should be applied.
Is zero if all cells should be taken.
Definition at line 98 of file refinePreBuilder.hh.
uint hp2D::APrioriRefinementRuleFactory::refToEdgeAttr_ [private] |
Attribute of edges to which should be refined (for h- and hp-refinement).
Is zero if all cells should be taken.
Definition at line 103 of file refinePreBuilder.hh.
uint hp2D::APrioriRefinementRuleFactory::refToVtxAttr_ [private] |
Attribute of corners to which should be refined (for h- and hp-refinement).
Is zero if all cells should be taken.
Definition at line 108 of file refinePreBuilder.hh.
enum rTypes hp2D::APrioriRefinementRuleFactory::rType_ [private] |
Refinement type.
Definition at line 111 of file refinePreBuilder.hh.
std::string hp2D::APrioriRefinementRuleFactory::text_ [private] |
The given string.
Definition at line 94 of file refinePreBuilder.hh.