A refinement record. More...
#include <element_to_refine.h>
Public Member Functions | |
| ElementToRefine () | |
| Constructor. Creates an invalid refinement. | |
| ElementToRefine (int id, int comp) | |
| Constructor. | |
| ElementToRefine (const ElementToRefine &orig) | |
| Copy-contructor. | |
| ElementToRefine & | operator= (const ElementToRefine &orig) |
| Assignment operator. | |
| int | get_num_sons () const |
| Returns a number of sons. | |
Static Public Member Functions | |
| static void | copy_orders (int *dest, const int *src) |
| Copies array of orders. | |
Public Attributes | |
| int | id |
| An ID of the element. -1 if invalid. | |
| int | comp |
| An index of the component. -1 if invalid. | |
| int | split |
| Proposed refinement. Possible values are defined in the enum RefinementType. | |
| int | p [H2D_MAX_ELEMENT_SONS] |
| Encoded orders of sons. | |
| int | q [H2D_MAX_ELEMENT_SONS] |
| Encoded orders of the best H-refinement. These orders are used in a case multiple components shares a single mesh. | |
A refinement record.
Except the attribute ElementToRefine::q, the class is able to dump its content to a stringstream in a human readable form, see operator<<(std::ostream& stream, const ElementToRefine& elem_ref).
| ElementToRefine::ElementToRefine | ( | ) | [inline] |
Constructor. Creates an invalid refinement.
| ElementToRefine::ElementToRefine | ( | int | id, | |
| int | comp | |||
| ) | [inline] |
Constructor.
| [in] | id | An ID of the element. |
| [in] | comp | An index of a component. |
| ElementToRefine::ElementToRefine | ( | const ElementToRefine & | orig | ) | [inline] |
Copy-contructor.
| static void ElementToRefine::copy_orders | ( | int * | dest, | |
| const int * | src | |||
| ) | [inline, static] |
Copies array of orders.
The length of the array is defubed by H2D_MAX_ELEMENT_SONS.
| [in] | dest | A destination array. |
| [in] | src | A source arrapy. |
| int ElementToRefine::get_num_sons | ( | ) | const [inline] |
Returns a number of sons.
| ElementToRefine & ElementToRefine::operator= | ( | const ElementToRefine & | orig | ) |
Assignment operator.
An index of the component. -1 if invalid.
An ID of the element. -1 if invalid.
| int ElementToRefine::p[H2D_MAX_ELEMENT_SONS] |
Encoded orders of sons.
| int ElementToRefine::q[H2D_MAX_ELEMENT_SONS] |
Encoded orders of the best H-refinement. These orders are used in a case multiple components shares a single mesh.
Proposed refinement. Possible values are defined in the enum RefinementType.
1.6.3