concepts::RestrictionSpace< F > Class Template Referenceabstract
Classes for restriction of spaces to a sub-domain. More...
#include <restriction.hh>
Public Types | |
typedef Scan< ElementWithCell< F > > | Scanner |
typedef ElementWithCell< F > | type |
Public Member Functions | |
virtual uint | dim () const |
Returns the dimension of the space. More... | |
virtual uint | dim () const=0 |
Returns the dimension of the space. More... | |
virtual uint | getOutputDimension () const |
Returns the default output dimension, when we consider plotting a real-valued operator on this space. More... | |
virtual uint | nelm () const |
Returns the number of elements in the space. More... | |
virtual uint | nelm () const=0 |
Returns the number of elements in the space. More... | |
RestrictionSpace (const SpaceOnCells< F > &spc, const Set< Attribute > attrib) | |
Constructor. More... | |
virtual Scanner * | scan () const |
Returns a scanner to iterate over the elements of the space. More... | |
virtual Scanner * | scan () const=0 |
Returns a scanner to iterate over the elements of the space. More... | |
virtual | ~RestrictionSpace () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Private Attributes | |
const uint | dim_ |
Dimension of the space. More... | |
concepts::Joiner< ElementWithCell< F > *, 1 > * | elm_ |
Linked list of the elements. More... | |
uint | nelm_ |
Number of elements. More... | |
Detailed Description
template<class F = Real>
class concepts::RestrictionSpace< F >
Classes for restriction of spaces to a sub-domain.
The elements are not hold in this class, but the original space class, and will not be deleted in the destructor.
Definition at line 28 of file restriction.hh.
Member Typedef Documentation
◆ Scanner
typedef Scan<ElementWithCell<F> > concepts::RestrictionSpace< F >::Scanner |
Definition at line 31 of file restriction.hh.
◆ type
typedef ElementWithCell<F> concepts::RestrictionSpace< F >::type |
Definition at line 30 of file restriction.hh.
Constructor & Destructor Documentation
◆ RestrictionSpace()
concepts::RestrictionSpace< F >::RestrictionSpace | ( | const SpaceOnCells< F > & | spc, |
const Set< Attribute > | attrib | ||
) |
Constructor.
- Parameters
-
spc another space attrib set of attributes of the cells belonging to the sub-domain
◆ ~RestrictionSpace()
|
virtual |
Member Function Documentation
◆ dim() [1/2]
|
inlinevirtual |
Returns the dimension of the space.
Definition at line 46 of file restriction.hh.
◆ dim() [2/2]
|
pure virtualinherited |
Returns the dimension of the space.
Implements concepts::Space< Real >.
Implemented in hp2D::hpAdaptiveSpace< Real >, hp3D::Space, hp2Dedge::Space, hp2D::Space, hp2D::hpAdaptiveSpace< Real >, and hp1D::Space.
◆ getOutputDimension()
|
inlinevirtualinherited |
◆ info()
|
protectedvirtual |
Reimplemented from concepts::SpaceOnCells< Real >.
◆ nelm() [1/2]
|
inlinevirtual |
Returns the number of elements in the space.
Definition at line 49 of file restriction.hh.
◆ nelm() [2/2]
|
pure virtualinherited |
Returns the number of elements in the space.
Implements concepts::Space< Real >.
Implemented in hp2D::hpAdaptiveSpace< Real >, hp3D::Space, hp2Dedge::Space, hp2D::Space, hp2D::hpAdaptiveSpace< Real >, and hp1D::Space.
◆ scan() [1/2]
|
inlinevirtual |
Returns a scanner to iterate over the elements of the space.
Definition at line 43 of file restriction.hh.
◆ scan() [2/2]
|
pure virtualinherited |
Returns a scanner to iterate over the elements of the space.
Implements concepts::Space< Real >.
Implemented in hp2D::hpAdaptiveSpace< Real >, hp3D::Space, hp2Dedge::Space, hp2D::Space, hp2D::hpAdaptiveSpace< Real >, and hp1D::Space.
Member Data Documentation
◆ dim_
|
private |
Dimension of the space.
Definition at line 54 of file restriction.hh.
◆ elm_
|
private |
Linked list of the elements.
Definition at line 58 of file restriction.hh.
◆ nelm_
|
private |
Number of elements.
Definition at line 56 of file restriction.hh.
The documentation for this class was generated from the following file:
- space/restriction.hh