ElementToRefine Class Reference
[Adaptivity]

A refinement record. More...

#include <element_to_refine.h>

List of all members.

Public Member Functions

 ElementToRefine ()
 Constructor. Creates an invalid refinement.
 ElementToRefine (int id, int comp)
 Constructor.
 ElementToRefine (const ElementToRefine &orig)
 Copy-contructor.
ElementToRefineoperator= (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.

Detailed Description

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).


Constructor & Destructor Documentation

ElementToRefine::ElementToRefine (  )  [inline]

Constructor. Creates an invalid refinement.

ElementToRefine::ElementToRefine ( int  id,
int  comp 
) [inline]

Constructor.

Parameters:
[in] id An ID of the element.
[in] comp An index of a component.
ElementToRefine::ElementToRefine ( const ElementToRefine orig  )  [inline]

Copy-contructor.


Member Function Documentation

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.

Parameters:
[in] dest A destination array.
[in] src A source arrapy.
int ElementToRefine::get_num_sons (  )  const [inline]

Returns a number of sons.

Returns:
A number of sons of a given refinement.
ElementToRefine & ElementToRefine::operator= ( const ElementToRefine orig  ) 

Assignment operator.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
Generated on Sat Jun 5 15:17:43 2010 for Hermes2D Library: Real Version by  doxygen 1.6.3