vectorial::Vectorial< F > Class Template Reference

Base class for most classes which do vector valued problems. More...

#include <vectorial.hh>

Public Member Functions

virtual const F * get (const int a, const int b=0) const
 Get a component. More...
 
virtual void insert (F &vdata, const int a=0, const int b=0)
 Add a component. More...
 
uint vdim () const
 Returns number of components. More...
 
 Vectorial (uint vdim, uint arrayWidth)
 Constructor. More...
 
virtual ~Vectorial ()
 

Protected Attributes

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

Private Member Functions

 Vectorial (const Vectorial< F > &c)
 Private copy constructor, forbids copying. More...
 

Detailed Description

template<class F>
class vectorial::Vectorial< F >

Base class for most classes which do vector valued problems.

This class is mainly responsible for the memory handling.

Author
Kersten Schmidt, 2002

Definition at line 59 of file vectorial.hh.

Constructor & Destructor Documentation

◆ Vectorial() [1/2]

template<class F >
vectorial::Vectorial< F >::Vectorial ( uint  vdim,
uint  arrayWidth 
)
inline

Constructor.

Parameters
vdimNumber of components
arrayWidthStorage to be allocated

Definition at line 65 of file vectorial.hh.

◆ ~Vectorial()

template<class F >
vectorial::Vectorial< F >::~Vectorial
virtual

Definition at line 91 of file vectorial.hh.

◆ Vectorial() [2/2]

template<class F >
vectorial::Vectorial< F >::Vectorial ( const Vectorial< F > &  c)
private

Private copy constructor, forbids copying.

Member Function Documentation

◆ get()

template<class F >
virtual const F* vectorial::Vectorial< F >::get ( const int  a,
const int  b = 0 
) const
inlinevirtual

Get a component.

Definition at line 74 of file vectorial.hh.

◆ insert()

template<class F >
void vectorial::Vectorial< F >::insert ( F &  vdata,
const int  a = 0,
const int  b = 0 
)
virtual

Add a component.

Definition at line 94 of file vectorial.hh.

◆ vdim()

template<class F >
uint vectorial::Vectorial< F >::vdim ( ) const
inline

Returns number of components.

Definition at line 77 of file vectorial.hh.

Member Data Documentation

◆ idx_

template<class F >
uint vectorial::Vectorial< F >::idx_
protected

Index of the last added component.

Definition at line 82 of file vectorial.hh.

◆ vdata_

template<class F >
concepts::Array<F*> vectorial::Vectorial< F >::vdata_
mutableprotected

Storage.

Definition at line 84 of file vectorial.hh.

◆ vdim_

template<class F >
uint vectorial::Vectorial< F >::vdim_
protected

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