Base class for vector valued element. More...

#include <vectorial.hh>

Inheritance diagram for vectorial::ElementBase< ElementType >:
vectorial::Vectorial< ElementType >

Public Types

typedef ElementType::type F
 

Public Member Functions

 ElementBase (uint vdim, uint arrayWidth, std::string name="ElementBase")
 
virtual const ElementType * get (const int a, const int b=0) const
 Get a component. More...
 
virtual const Graphics< F > * graphics () const
 
virtual void insert (ElementType &vdata, const int a=0, const int b=0)
 Add a component. More...
 
virtual void put (ElementType &em, const int dim, const int b=0)
 Insert element em into the vector valued element. More...
 
virtual vectorial::TMatrix< F > & T () const
 
uint vdim () const
 Returns number of components. More...
 
virtual ~ElementBase ()
 

Static Public Member Functions

static Graphics< F > * vecGraphics ()
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 

Protected Attributes

uint idx_
 Index of the last added component. More...
 
std::unique_ptr< vectorial::TMatrix< F > > T_
 T matrix for the vector valued element. More...
 
concepts::Array< ElementType * > vdata_
 Storage. More...
 
uint vdim_
 Number of components. More...
 

Private Attributes

std::string name_
 Name of the class for output. More...
 

Static Private Attributes

static std::unique_ptr< Graphics< F > > graphics_
 

Detailed Description

template<class ElementType>
class vectorial::ElementBase< ElementType >

Base class for vector valued element.

Author
Kersten Schmidt, 2013

Definition at line 224 of file vectorial.hh.

Member Typedef Documentation

◆ F

template<class ElementType >
typedef ElementType::type vectorial::ElementBase< ElementType >::F

Definition at line 227 of file vectorial.hh.

Constructor & Destructor Documentation

◆ ElementBase()

template<class ElementType >
vectorial::ElementBase< ElementType >::ElementBase ( uint  vdim,
uint  arrayWidth,
std::string  name = "ElementBase< ElementType >" 
)
inline

Definition at line 229 of file vectorial.hh.

◆ ~ElementBase()

template<class ElementType >
virtual vectorial::ElementBase< ElementType >::~ElementBase ( )
virtual

Member Function Documentation

◆ get()

virtual const ElementType * vectorial::Vectorial< ElementType >::get ( const int  a,
const int  b = 0 
) const
inlinevirtualinherited

Get a component.

Definition at line 74 of file vectorial.hh.

◆ graphics()

template<class ElementType >
virtual const Graphics<F>* vectorial::ElementBase< ElementType >::graphics ( ) const
inlinevirtual

Definition at line 243 of file vectorial.hh.

◆ info()

template<class ElementType >
virtual std::ostream& vectorial::ElementBase< ElementType >::info ( std::ostream &  os) const
protectedvirtual

◆ insert()

void vectorial::Vectorial< ElementType >::insert ( ElementType &  vdata,
const int  a = 0,
const int  b = 0 
)
virtualinherited

Add a component.

Definition at line 72 of file vectorial.hh.

◆ put()

template<class ElementType >
virtual void vectorial::ElementBase< ElementType >::put ( ElementType &  em,
const int  dim,
const int  b = 0 
)
virtual

Insert element em into the vector valued element.

This also creates the T matrix T_ of this element.

Parameters
dimNumber of global degrees of freedom (size of the subspace)

Reimplemented in vectorial::ElementWithCell< F >.

◆ T()

template<class ElementType >
virtual vectorial::TMatrix<F>& vectorial::ElementBase< ElementType >::T ( ) const
inlinevirtual

Definition at line 242 of file vectorial.hh.

◆ vdim()

uint vectorial::Vectorial< ElementType >::vdim
inlineinherited

Returns number of components.

Definition at line 77 of file vectorial.hh.

◆ vecGraphics()

template<class ElementType >
static Graphics<F>* vectorial::ElementBase< ElementType >::vecGraphics ( )
inlinestatic

Definition at line 248 of file vectorial.hh.

Member Data Documentation

◆ graphics_

template<class ElementType >
std::unique_ptr<Graphics<F> > vectorial::ElementBase< ElementType >::graphics_
staticprivate

Definition at line 258 of file vectorial.hh.

◆ idx_

uint vectorial::Vectorial< ElementType >::idx_
protectedinherited

Index of the last added component.

Definition at line 82 of file vectorial.hh.

◆ name_

template<class ElementType >
std::string vectorial::ElementBase< ElementType >::name_
private

Name of the class for output.

Definition at line 260 of file vectorial.hh.

◆ T_

template<class ElementType >
std::unique_ptr<vectorial::TMatrix<F> > vectorial::ElementBase< ElementType >::T_
protected

T matrix for the vector valued element.

Definition at line 256 of file vectorial.hh.

◆ vdata_

concepts::Array<ElementType *> vectorial::Vectorial< ElementType >::vdata_
mutableprotectedinherited

Storage.

Definition at line 84 of file vectorial.hh.

◆ vdim_

uint vectorial::Vectorial< ElementType >::vdim_
protectedinherited

Number of components.

Definition at line 80 of file vectorial.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