RefinementSelectors::ProjBasedSelector::TrfShapeExp Class Reference

A transform shaped function expansions. More...

#include <proj_based_selector.h>

List of all members.

Public Member Functions

 TrfShapeExp ()
 A default contructor. Creates an empty instance.
virtual ~TrfShapeExp ()
 Desructor.
void allocate (int num_expansion, int num_gip)
 Allocates a space for function expansions.
double * operator[] (int inx_expansion)
 Operator for accessing of contents.
bool empty ()
 Returns true if the instance is empty, i.e., the method allocate() was not called yet.
const TrfShapeExpoperator= (const TrfShapeExp &other)
 Assignment operator. Prevent unauthorized copying of the pointer.

Detailed Description

A transform shaped function expansions.

The contents of the class can be accessed through an array index operator. The first index is an index of the function expansion, the second index is and index of an integration point.

Use strictly through reference. This allocates an array internally through the method allocate(). If the use attempt to assign an instance which is not empty (i.e., the array is not allocate), an error will be issued. Assigning an empty instance will cause deallocation of the internal structures.


Constructor & Destructor Documentation

RefinementSelectors::ProjBasedSelector::TrfShapeExp::TrfShapeExp (  )  [inline]

A default contructor. Creates an empty instance.

virtual RefinementSelectors::ProjBasedSelector::TrfShapeExp::~TrfShapeExp (  )  [inline, virtual]

Desructor.


Member Function Documentation

void RefinementSelectors::ProjBasedSelector::TrfShapeExp::allocate ( int  num_expansion,
int  num_gip 
) [inline]

Allocates a space for function expansions.

Parameters:
[in] num_expansion A number of expansions.
[in] num_gip A number of itegration points.
bool RefinementSelectors::ProjBasedSelector::TrfShapeExp::empty (  )  [inline]

Returns true if the instance is empty, i.e., the method allocate() was not called yet.

Returns:
True if the instance is empty, i.e., the method allocate() was not called yet.
const TrfShapeExp& RefinementSelectors::ProjBasedSelector::TrfShapeExp::operator= ( const TrfShapeExp other  )  [inline]

Assignment operator. Prevent unauthorized copying of the pointer.

This method prevents a user from copying allocated internal structures because C++ does not support garbage collection.

double* RefinementSelectors::ProjBasedSelector::TrfShapeExp::operator[] ( int  inx_expansion  )  [inline]

Operator for accessing of contents.

Parameters:
[in] inx_expansion An index of a function expansion.
Returns:
A pointer to an array of values of a function expansion at integration points. The returned pointer should not be stored outside the calling method or deallocated.

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