Base class for vector valued space. More...

#include <vectorial.hh>

Inheritance diagram for vectorial::SpaceBase< SpaceType >:
vectorial::Vectorial< SpaceType >

Public Types

typedef VectorialElementType< typename SpaceType::type >::type ElementType
 
typedef concepts::Scan< ElementTypeScanner
 

Public Member Functions

virtual uint dim () const
 
virtual const SpaceType * get (const int a, const int b=0) const
 Get a component. More...
 
virtual void insert (SpaceType &vdata, const int a=0, const int b=0)
 Add a component. More...
 
virtual uint nelm () const
 
virtual void put (SpaceType &spc, const int i=0, const int j=0)
 Insert a Space spc of one vectorial dimension to the next v-dimensional space (arguments i and j are ignored) More...
 
void rebuild ()
 Rebuilds the vectorial space from the scalar spaces. More...
 
virtual Scannerscan () const
 
 SpaceBase (const SpaceBase &spcb)
 
 SpaceBase (const uint vdim, const uint arrayWidth=0, std::string name="SpaceBase")
 
uint vdim () const
 Returns number of components. More...
 
virtual ~SpaceBase ()
 

Protected Member Functions

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

Protected Attributes

uint idx_
 Index of the last added component. More...
 
concepts::Array< SpaceType * > vdata_
 Storage. More...
 
uint vdim_
 Number of components. More...
 

Private Member Functions

void buildElm_ (const SpaceType &spc, uint idx)
 

Private Attributes

uint dim_
 
concepts::Joiner< ElementType *, 1 > * elm_
 
std::string name_
 Name of the class for output. More...
 
uint nelm_
 

Detailed Description

template<class SpaceType>
class vectorial::SpaceBase< SpaceType >

Base class for vector valued space.

Author
Kersten Schmidt, 2002

Definition at line 426 of file vectorial.hh.

Member Typedef Documentation

◆ ElementType

template<class SpaceType >
typedef VectorialElementType<typename SpaceType::type>::type vectorial::SpaceBase< SpaceType >::ElementType

Definition at line 430 of file vectorial.hh.

◆ Scanner

template<class SpaceType >
typedef concepts::Scan<ElementType> vectorial::SpaceBase< SpaceType >::Scanner

Definition at line 451 of file vectorial.hh.

Constructor & Destructor Documentation

◆ SpaceBase() [1/2]

template<class SpaceType >
vectorial::SpaceBase< SpaceType >::SpaceBase ( const uint  vdim,
const uint  arrayWidth = 0,
std::string  name = "SpaceBase< SpaceType >" 
)
inline

Definition at line 432 of file vectorial.hh.

◆ SpaceBase() [2/2]

template<class SpaceType >
vectorial::SpaceBase< SpaceType >::SpaceBase ( const SpaceBase< SpaceType > &  spcb)
inline

Definition at line 440 of file vectorial.hh.

◆ ~SpaceBase()

template<class SpaceType >
virtual vectorial::SpaceBase< SpaceType >::~SpaceBase ( )
virtual

Member Function Documentation

◆ buildElm_()

template<class SpaceType >
void vectorial::SpaceBase< SpaceType >::buildElm_ ( const SpaceType &  spc,
uint  idx 
)
private

◆ dim()

template<class SpaceType >
virtual uint vectorial::SpaceBase< SpaceType >::dim ( ) const
inlinevirtual

Definition at line 449 of file vectorial.hh.

◆ get()

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

Get a component.

Definition at line 74 of file vectorial.hh.

◆ info()

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

◆ insert()

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

Add a component.

Definition at line 72 of file vectorial.hh.

◆ nelm()

template<class SpaceType >
virtual uint vectorial::SpaceBase< SpaceType >::nelm ( ) const
inlinevirtual

Definition at line 450 of file vectorial.hh.

◆ put()

template<class SpaceType >
virtual void vectorial::SpaceBase< SpaceType >::put ( SpaceType &  spc,
const int  i = 0,
const int  j = 0 
)
virtual

Insert a Space spc of one vectorial dimension to the next v-dimensional space (arguments i and j are ignored)

◆ rebuild()

template<class SpaceType >
void vectorial::SpaceBase< SpaceType >::rebuild ( )

Rebuilds the vectorial space from the scalar spaces.

◆ scan()

template<class SpaceType >
virtual Scanner* vectorial::SpaceBase< SpaceType >::scan ( ) const
virtual

◆ vdim()

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

Returns number of components.

Definition at line 77 of file vectorial.hh.

Member Data Documentation

◆ dim_

template<class SpaceType >
uint vectorial::SpaceBase< SpaceType >::dim_
private

Definition at line 464 of file vectorial.hh.

◆ elm_

template<class SpaceType >
concepts::Joiner<ElementType*, 1>* vectorial::SpaceBase< SpaceType >::elm_
private

Definition at line 465 of file vectorial.hh.

◆ idx_

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

Index of the last added component.

Definition at line 82 of file vectorial.hh.

◆ name_

template<class SpaceType >
std::string vectorial::SpaceBase< SpaceType >::name_
private

Name of the class for output.

Definition at line 467 of file vectorial.hh.

◆ nelm_

template<class SpaceType >
uint vectorial::SpaceBase< SpaceType >::nelm_
private

Definition at line 464 of file vectorial.hh.

◆ vdata_

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

Storage.

Definition at line 84 of file vectorial.hh.

◆ vdim_

uint vectorial::Vectorial< SpaceType >::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