concepts::RestrictionSpace< F > Class Template Referenceabstract

Classes for restriction of spaces to a sub-domain. More...

#include <restriction.hh>

Inheritance diagram for concepts::RestrictionSpace< F >:
concepts::SpaceOnCells< Real > concepts::Space< Real >

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 Scannerscan () const
 Returns a scanner to iterate over the elements of the space. More...
 
virtual Scannerscan () 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.

Author
Kersten Schmidt, 2017

Definition at line 28 of file restriction.hh.

Member Typedef Documentation

◆ Scanner

template<class F = Real>
typedef Scan<ElementWithCell<F> > concepts::RestrictionSpace< F >::Scanner

Definition at line 31 of file restriction.hh.

◆ type

template<class F = Real>
typedef ElementWithCell<F> concepts::RestrictionSpace< F >::type

Definition at line 30 of file restriction.hh.

Constructor & Destructor Documentation

◆ RestrictionSpace()

template<class F = Real>
concepts::RestrictionSpace< F >::RestrictionSpace ( const SpaceOnCells< F > &  spc,
const Set< Attribute attrib 
)

Constructor.

Parameters
spcanother space
attribset of attributes of the cells belonging to the sub-domain

◆ ~RestrictionSpace()

template<class F = Real>
virtual concepts::RestrictionSpace< F >::~RestrictionSpace ( )
virtual

Member Function Documentation

◆ dim() [1/2]

template<class F = Real>
virtual uint concepts::RestrictionSpace< F >::dim ( ) const
inlinevirtual

Returns the dimension of the space.

Definition at line 46 of file restriction.hh.

◆ dim() [2/2]

virtual uint concepts::SpaceOnCells< Real >::dim
pure virtualinherited

◆ getOutputDimension()

virtual uint concepts::Space< Real >::getOutputDimension
inlinevirtualinherited

Returns the default output dimension, when we consider plotting a real-valued operator on this space.

Definition at line 50 of file space.hh.

◆ info()

template<class F = Real>
virtual std::ostream& concepts::RestrictionSpace< F >::info ( std::ostream &  os) const
protectedvirtual

Reimplemented from concepts::SpaceOnCells< Real >.

◆ nelm() [1/2]

template<class F = Real>
virtual uint concepts::RestrictionSpace< F >::nelm ( ) const
inlinevirtual

Returns the number of elements in the space.

Definition at line 49 of file restriction.hh.

◆ nelm() [2/2]

virtual uint concepts::SpaceOnCells< Real >::nelm
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]

template<class F = Real>
virtual Scanner* concepts::RestrictionSpace< F >::scan ( ) const
inlinevirtual

Returns a scanner to iterate over the elements of the space.

Definition at line 43 of file restriction.hh.

◆ scan() [2/2]

virtual Scanner* concepts::SpaceOnCells< Real >::scan
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_

template<class F = Real>
const uint concepts::RestrictionSpace< F >::dim_
private

Dimension of the space.

Definition at line 54 of file restriction.hh.

◆ elm_

template<class F = Real>
concepts::Joiner<ElementWithCell<F>*, 1>* concepts::RestrictionSpace< F >::elm_
private

Linked list of the elements.

Definition at line 58 of file restriction.hh.

◆ nelm_

template<class F = Real>
uint concepts::RestrictionSpace< F >::nelm_
private

Number of elements.

Definition at line 56 of file restriction.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich