concepts::SubspaceHelper< F, G > Class Template Reference

#include <spacePreBuilder.hh>

Inheritance diagram for concepts::SubspaceHelper< F, G >:
concepts::SpaceHelper< F, G > concepts::OutputOperator

Public Member Functions

const BoundaryConditionsbc () const
 Returns boundary conditions. More...
 
const CellConditionscc () const
 Returns cell conditions. More...
 
virtual uint & idx ()
 Returns the next index for the space. More...
 
virtual const uint & idx () const
 
uint offset () const
 Returns the offset. More...
 
bool ownIndex () const
 
const concepts::Set< const concepts::Connector * > passive () const
 
bool passive (const concepts::Connector &cntr) const
 Returns if an entitiy of dimension dim is marked as passive. More...
 
G & prebuild ()
 Returns space pre builder. More...
 
virtual void reset ()
 Reset the index counter. More...
 
void set_bc (const BoundaryConditions *bc)
 Reset boundary conditions to bc. More...
 
void setPassive (const concepts::Connector &cntr)
 Mark a connector as passive. More...
 
virtual uint spcNo () const
 Returns a number to distinguish between global indices on same topological entity. More...
 
 SubspaceHelper (G &prebuild, uint spcNo, const BoundaryConditions *bc=0, const CellConditions *cc=0, uint *const offset=0, uint *const idx=0)
 Constructor. More...
 
virtual ~SubspaceHelper ()
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 

Private Attributes

std::unique_ptr< const BoundaryConditionsbc_
 Boundary conditions. More...
 
std::unique_ptr< const CellConditionscc_
 Cell conditions. More...
 
uint *const idx_
 Last index of the space, is offset plus dimension. More...
 
uint *const offset_
 Pointer to dimension of the previous space. More...
 
bool ownIndex_
 If index is created here. More...
 
concepts::Set< const concepts::Connector * > passive_
 Set of passive connectors. More...
 
G * prebuild_
 Space pre builder. More...
 
uint spcNo_
 

Detailed Description

template<class F, class G>
class concepts::SubspaceHelper< F, G >

Definition at line 163 of file spacePreBuilder.hh.

Constructor & Destructor Documentation

◆ SubspaceHelper()

template<class F , class G >
concepts::SubspaceHelper< F, G >::SubspaceHelper ( G &  prebuild,
uint  spcNo,
const BoundaryConditions bc = 0,
const CellConditions cc = 0,
uint *const  offset = 0,
uint *const  idx = 0 
)
inline

Constructor.

Parameters
prebuildspace prebuilder itself (not deleted in destructor)
spcNoNumber to distinguish between global indices on same topological entity.
bcpointer to boundary conditions
offsetpointer to offset
idxpointer to index, e.g. for domain decomposition

Definition at line 174 of file spacePreBuilder.hh.

◆ ~SubspaceHelper()

template<class F , class G >
virtual concepts::SubspaceHelper< F, G >::~SubspaceHelper ( )
inlinevirtual

Definition at line 181 of file spacePreBuilder.hh.

Member Function Documentation

◆ bc()

template<class F , class G >
const BoundaryConditions* concepts::SpaceHelper< F, G >::bc ( ) const
inlineinherited

Returns boundary conditions.

Definition at line 106 of file spacePreBuilder.hh.

◆ cc()

template<class F , class G >
const CellConditions* concepts::SpaceHelper< F, G >::cc ( ) const
inlineinherited

Returns cell conditions.

Definition at line 108 of file spacePreBuilder.hh.

◆ idx() [1/2]

template<class F , class G >
virtual uint& concepts::SubspaceHelper< F, G >::idx ( )
inlinevirtual

Returns the next index for the space.

It can be used as offset for the next subspace. Because it returns the reference, then if the subspace is built, the offset of the next subspace is automatically right.

Implements concepts::SpaceHelper< F, G >.

Definition at line 191 of file spacePreBuilder.hh.

◆ idx() [2/2]

template<class F , class G >
virtual const uint& concepts::SubspaceHelper< F, G >::idx ( ) const
inlinevirtual

Implements concepts::SpaceHelper< F, G >.

Definition at line 194 of file spacePreBuilder.hh.

◆ info()

template<class F , class G >
std::ostream & concepts::SubspaceHelper< F, G >::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::SpaceHelper< F, G >.

Definition at line 216 of file spacePreBuilder.hh.

◆ offset()

template<class F , class G >
uint concepts::SubspaceHelper< F, G >::offset ( ) const
inline

Returns the offset.

Definition at line 201 of file spacePreBuilder.hh.

◆ ownIndex()

template<class F , class G >
bool concepts::SubspaceHelper< F, G >::ownIndex ( ) const
inline

Definition at line 198 of file spacePreBuilder.hh.

◆ passive() [1/2]

template<class F , class G >
const concepts::Set<const concepts::Connector*> concepts::SpaceHelper< F, G >::passive ( ) const
inlineinherited

Definition at line 133 of file spacePreBuilder.hh.

◆ passive() [2/2]

template<class F , class G >
bool concepts::SpaceHelper< F, G >::passive ( const concepts::Connector cntr) const
inlineinherited

Returns if an entitiy of dimension dim is marked as passive.

Definition at line 126 of file spacePreBuilder.hh.

◆ prebuild()

template<class F , class G >
G& concepts::SpaceHelper< F, G >::prebuild ( )
inlineinherited

Returns space pre builder.

Definition at line 114 of file spacePreBuilder.hh.

◆ reset()

template<class F , class G >
virtual void concepts::SubspaceHelper< F, G >::reset ( )
inlinevirtual

Reset the index counter.

Implements concepts::SpaceHelper< F, G >.

Definition at line 185 of file spacePreBuilder.hh.

◆ set_bc()

template<class F , class G >
void concepts::SpaceHelper< F, G >::set_bc ( const BoundaryConditions bc)
inlineinherited

Reset boundary conditions to bc.

Definition at line 110 of file spacePreBuilder.hh.

◆ setPassive()

template<class F , class G >
void concepts::SpaceHelper< F, G >::setPassive ( const concepts::Connector cntr)
inlineinherited

Mark a connector as passive.

Definition at line 130 of file spacePreBuilder.hh.

◆ spcNo()

template<class F , class G >
virtual uint concepts::SubspaceHelper< F, G >::spcNo ( ) const
inlinevirtual

Returns a number to distinguish between global indices on same topological entity.

Here 0, but meaning can come in derivated classes.

Reimplemented from concepts::SpaceHelper< F, G >.

Definition at line 199 of file spacePreBuilder.hh.

Member Data Documentation

◆ bc_

template<class F , class G >
std::unique_ptr<const BoundaryConditions> concepts::SpaceHelper< F, G >::bc_
privateinherited

Boundary conditions.

Definition at line 142 of file spacePreBuilder.hh.

◆ cc_

template<class F , class G >
std::unique_ptr<const CellConditions> concepts::SpaceHelper< F, G >::cc_
privateinherited

Cell conditions.

Definition at line 144 of file spacePreBuilder.hh.

◆ idx_

template<class F , class G >
uint* const concepts::SubspaceHelper< F, G >::idx_
private

Last index of the space, is offset plus dimension.

Definition at line 211 of file spacePreBuilder.hh.

◆ offset_

template<class F , class G >
uint* const concepts::SubspaceHelper< F, G >::offset_
private

Pointer to dimension of the previous space.

Definition at line 207 of file spacePreBuilder.hh.

◆ ownIndex_

template<class F , class G >
bool concepts::SubspaceHelper< F, G >::ownIndex_
private

If index is created here.

Definition at line 209 of file spacePreBuilder.hh.

◆ passive_

template<class F , class G >
concepts::Set<const concepts::Connector*> concepts::SpaceHelper< F, G >::passive_
privateinherited

Set of passive connectors.

Definition at line 146 of file spacePreBuilder.hh.

◆ prebuild_

template<class F , class G >
G* concepts::SpaceHelper< F, G >::prebuild_
privateinherited

Space pre builder.

Definition at line 140 of file spacePreBuilder.hh.

◆ spcNo_

template<class F , class G >
uint concepts::SubspaceHelper< F, G >::spcNo_
private

Definition at line 205 of file spacePreBuilder.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