Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
concepts::Model< F > Class Template Reference

Base class for a model. More...

#include <models.hh>

Inheritance diagram for concepts::Model< F >:
Inheritance graph
[legend]
Collaboration diagram for concepts::Model< F >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef F type

Public Member Functions

 Model (const std::string problemName)
 Constructor.
const Vector< F > * solution ()
 Returns solution vector.
virtual Space< Real > & space () const =0
 Returns the space.
virtual ~Model ()

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
virtual Meshmesh_ ()=0
 Mesh.
virtual const std::string mshAbbr_ ()=0
 Mesh abbreviation string.
virtual void solve_ ()=0
 Method for solving.

Protected Attributes

const std::string problemName_
 Name of the problem.
std::auto_ptr< Vector< F > > sol_
 Solution vector.

Friends

class ModelControl< Model< F > >
class ModelControlBase< Model< F > >

Detailed Description

template<class F>
class concepts::Model< F >

Base class for a model.

Author:
Kersten Schmidt, 2005

Definition at line 54 of file models.hh.


Member Typedef Documentation

template<class F>
typedef F concepts::Model< F >::type

Definition at line 58 of file models.hh.


Constructor & Destructor Documentation

template<class F>
concepts::Model< F >::Model ( const std::string  problemName)

Constructor.

template<class F>
virtual concepts::Model< F >::~Model ( ) [inline, virtual]

Definition at line 62 of file models.hh.


Member Function Documentation

template<class F>
virtual std::ostream& concepts::Model< F >::info ( std::ostream &  os) const [protected, virtual]
template<class F>
virtual Mesh& concepts::Model< F >::mesh_ ( ) [protected, pure virtual]
template<class F>
virtual const std::string concepts::Model< F >::mshAbbr_ ( ) [protected, pure virtual]
template<class F>
const Vector<F>* concepts::Model< F >::solution ( ) [inline]

Returns solution vector.

Definition at line 66 of file models.hh.

template<class F>
virtual void concepts::Model< F >::solve_ ( ) [protected, pure virtual]
template<class F>
virtual Space<Real>& concepts::Model< F >::space ( ) const [pure virtual]

Friends And Related Function Documentation

template<class F>
friend class ModelControl< Model< F > > [friend]

Definition at line 56 of file models.hh.

template<class F>
friend class ModelControlBase< Model< F > > [friend]

Definition at line 55 of file models.hh.


Member Data Documentation

template<class F>
const std::string concepts::Model< F >::problemName_ [protected]

Name of the problem.

Definition at line 81 of file models.hh.

template<class F>
std::auto_ptr<Vector<F> > concepts::Model< F >::sol_ [protected]

Solution vector.

Definition at line 77 of file models.hh.


The documentation for this class was generated from the following file:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)