SolverInformationCenter Class Reference

#include <SolverInformationCenter.hpp>

Inheritance diagram for SolverInformationCenter:

Inheritance graph
[legend]
Collaboration diagram for SolverInformationCenter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

const Meshmesh () const
const DiscretizationTypediscretizationType () const
void pushMesh (const Mesh *mesh)
void pushDiscretizationType (const DiscretizationType *discretizationType)
void pop ()
 SolverInformationCenter ()
 ~SolverInformationCenter ()

Static Public Member Functions

static SolverInformationCenterinstance ()
static void create ()
static void destroy ()

Static Protected Attributes

static SolverInformationCenter__pInstance

Private Attributes

std::stack< const Mesh * > __mesh
std::stack< const
DiscretizationType * > 
__discretizationType


Detailed Description

Definition at line 41 of file SolverInformationCenter.hpp.


Constructor & Destructor Documentation

SolverInformationCenter::SolverInformationCenter (  )  [inline]

Constructor

Definition at line 111 of file SolverInformationCenter.hpp.

00112   {
00113     ;
00114   }

SolverInformationCenter::~SolverInformationCenter (  )  [inline]

Destructor

Definition at line 120 of file SolverInformationCenter.hpp.

00121   {
00122     ;
00123   }


Member Function Documentation

const Mesh& SolverInformationCenter::mesh (  )  const [inline]

Read-only access to the last stored mesh

Returns:
the top of the mesh stack

Definition at line 57 of file SolverInformationCenter.hpp.

References __mesh, and ASSERT.

Referenced by SpectralFEMPreconditioner::Internal::computes(), SpectralFEMPreconditioner::Internal::computesTransposed(), and MultiGrid::MultiGrid().

00058   {
00059     ASSERT(__mesh.size() != 0);
00060     ASSERT(__mesh.top() != 0);
00061     return *(__mesh.top());
00062   }

const DiscretizationType& SolverInformationCenter::discretizationType (  )  const [inline]

Read-only access to the last discretization type

Returns:
the top of the discretization type stack

Definition at line 70 of file SolverInformationCenter.hpp.

References __discretizationType, and ASSERT.

Referenced by SpectralFEMPreconditioner::Internal::computes(), SpectralFEMPreconditioner::Internal::computesTransposed(), and MultiGrid::MultiGrid().

00071   {
00072     ASSERT(__discretizationType.size() != 0);
00073     ASSERT(__discretizationType.top() != 0);
00074     return *__discretizationType.top();
00075   }

void SolverInformationCenter::pushMesh ( const Mesh mesh  )  [inline]

void SolverInformationCenter::pushDiscretizationType ( const DiscretizationType discretizationType  )  [inline]

Pushes a discretization type to the stack

Parameters:
discretizationType the discretization type to push

Definition at line 92 of file SolverInformationCenter.hpp.

References __discretizationType.

Referenced by FEMDiscretization< Structured3DMesh, TypeOfDiscretization >::FEMDiscretization(), FEMDiscretization< GivenMeshType, TypeOfDiscretization >::FEMDiscretization(), FiniteElementMethod::FiniteElementMethod(), and SpectralMethod::SpectralMethod().

00093   {
00094     __discretizationType.push(discretizationType);
00095   }

void SolverInformationCenter::pop (  )  [inline]

static SolverInformationCenter & StaticBase< SolverInformationCenter >::instance (  )  [inline, static, inherited]

static void StaticBase< SolverInformationCenter >::create (  )  [inline, static, inherited]

Creates __pInstance in Embedding class.

Definition at line 55 of file StaticBase.hpp.

Referenced by ThreadStaticCenter::ThreadStaticCenter().

00056   {
00057     __pInstance = new EmbeddingClass();
00058   }

static void StaticBase< SolverInformationCenter >::destroy (  )  [inline, static, inherited]

Destroyes __autoInstanciated in Embedding class.

Definition at line 64 of file StaticBase.hpp.

Referenced by ThreadStaticCenter::~ThreadStaticCenter().

00065   {
00066     delete __pInstance;
00067   }


Member Data Documentation

std::stack<const Mesh*> SolverInformationCenter::__mesh [private]

stack of used meshes

Definition at line 46 of file SolverInformationCenter.hpp.

Referenced by mesh(), pop(), and pushMesh().

stack of discretization types

Definition at line 48 of file SolverInformationCenter.hpp.

Referenced by discretizationType(), pop(), and pushDiscretizationType().

The static variable

Definition at line 37 of file StaticBase.hpp.


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

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