PDEProblem Class Reference

#include <PDEProblem.hpp>

Collaboration diagram for PDEProblem:

Collaboration graph
[legend]

List of all members.

Public Member Functions

const PDEpde () const
const BoundaryConditionSetboundaryConditionSet () const
ReferenceCounting< PDEProblemoperator* (const ConstReferenceCounting< ScalarFunctionBase > &c) const
 PDEProblem (ReferenceCounting< PDE > pde, ReferenceCounting< BoundaryConditionSet > boundaryConditionSet)
 PDEProblem (const PDEProblem &pdeProblem)
virtual ~PDEProblem ()

Private Attributes

ConstReferenceCounting< PDE__pde
ReferenceCounting
< BoundaryConditionSet
__boundaryConditionSet

Friends

std::ostream & operator<< (std::ostream &os, const PDEProblem &P)


Detailed Description

Definition at line 36 of file PDEProblem.hpp.


Constructor & Destructor Documentation

PDEProblem::PDEProblem ( ReferenceCounting< PDE pde,
ReferenceCounting< BoundaryConditionSet boundaryConditionSet 
) [inline]

Constructor

Parameters:
pde given PDE
boundaryConditionSet a boundary condition set

Definition at line 103 of file PDEProblem.hpp.

Referenced by operator*().

00105     : __pde(pde),
00106       __boundaryConditionSet(boundaryConditionSet)
00107   {
00108     ;
00109   }

PDEProblem::PDEProblem ( const PDEProblem pdeProblem  )  [inline]

Copy constructor

Parameters:
pdeProblem a given PDE problem

Definition at line 116 of file PDEProblem.hpp.

00117     : __pde(pdeProblem.__pde),
00118       __boundaryConditionSet(pdeProblem.__boundaryConditionSet)
00119   {
00120     ;
00121   }

virtual PDEProblem::~PDEProblem (  )  [inline, virtual]

Destructor

Definition at line 127 of file PDEProblem.hpp.

00128   {
00129     ;
00130   }


Member Function Documentation

const PDE& PDEProblem::pde (  )  const [inline]

Read only access to the PDE

Returns:
*__pde

Definition at line 50 of file PDEProblem.hpp.

References __pde.

00051   {
00052     return *__pde;
00053   }

const BoundaryConditionSet& PDEProblem::boundaryConditionSet (  )  const [inline]

Read-only access to the boundary condition set

Returns:
*__boundaryConditionSet

Definition at line 61 of file PDEProblem.hpp.

References __boundaryConditionSet.

00062   {
00063     return *__boundaryConditionSet;
00064   }

ReferenceCounting<PDEProblem> PDEProblem::operator* ( const ConstReferenceCounting< ScalarFunctionBase > &  c  )  const [inline]

"multiplies" a PDE problem by a coefficient c

Parameters:
c the coefficient
Returns:
the new PDEProblem

Definition at line 74 of file PDEProblem.hpp.

References __pde, and PDEProblem().

00075   {
00076     PDEProblem* newPDEProblem = new PDEProblem(*this);
00077     newPDEProblem->__pde = (*__pde) * c;
00078     return newPDEProblem;
00079   }

Here is the call graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const PDEProblem P 
) [friend]

Writes the PDE problem to a stream

Parameters:
os given stream
P the problem
Returns:
os

Definition at line 90 of file PDEProblem.hpp.

00091   {
00092     os << *P.__pde << '\n';
00093     os << *P.__boundaryConditionSet;
00094     return os;
00095   }


Member Data Documentation

a given PDE

Definition at line 39 of file PDEProblem.hpp.

Referenced by operator*(), and pde().

a given boundary condition set

Definition at line 42 of file PDEProblem.hpp.

Referenced by boundaryConditionSet().


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

Generated on Wed Nov 19 00:11:21 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6