GaussLobattoManager Class Reference

#include <GaussLobattoManager.hpp>

Inheritance diagram for GaussLobattoManager:

Inheritance graph
[legend]
Collaboration diagram for GaussLobattoManager:

Collaboration graph
[legend]

List of all members.

Public Member Functions

const GaussLobattoget (const size_t &n) const
ConstReferenceCounting
< GaussLobatto
getReference (const size_t &n) const
 GaussLobattoManager ()
 ~GaussLobattoManager ()

Static Public Member Functions

static GaussLobattoManagerinstance ()
static void create ()
static void destroy ()

Static Protected Attributes

static GaussLobattoManager__pInstance

Private Member Functions

void __buildGaussLobatto (const size_t &n) const

Private Attributes

std::vector
< ConstReferenceCounting
< GaussLobatto > > 
__gaussLobatto


Detailed Description

Definition at line 37 of file GaussLobattoManager.hpp.


Constructor & Destructor Documentation

GaussLobattoManager::GaussLobattoManager (  )  [inline]

Default constructor

Definition at line 76 of file GaussLobattoManager.hpp.

00077   {
00078     ;
00079   }

GaussLobattoManager::~GaussLobattoManager (  )  [inline]

Destructor

Definition at line 85 of file GaussLobattoManager.hpp.

00086   {
00087     ;
00088   }


Member Function Documentation

void GaussLobattoManager::__buildGaussLobatto ( const size_t &  n  )  const [private]

Builds missing Gauss-Lobatto formulae up to n

Parameters:
n the value for completing the set of Gauss-Lobatto vertices

Definition at line 24 of file GaussLobattoManager.cpp.

References __gaussLobatto.

Referenced by get(), and getReference().

00025 {
00026   const size_t oldDegrees = __gaussLobatto.size();
00027   for (size_t i=oldDegrees; i<=degree; ++i) {
00028     __gaussLobatto.push_back(new GaussLobatto(i));
00029   }
00030 }

const GaussLobatto & GaussLobattoManager::get ( const size_t &  n  )  const

Read-only access to the n th formula

Parameters:
n number of the set of vertices
Returns:
the
th formula

Definition at line 34 of file GaussLobattoManager.cpp.

References __buildGaussLobatto(), and __gaussLobatto.

Referenced by SpectralFEMPreconditioner::Internal::computes(), SpectralFEMPreconditioner::Internal::computesTransposed(), RealExpressionIntegrate::execute(), and SpectralMesh::SpectralMesh().

00035 {
00036   if (degree+1>__gaussLobatto.size()) {
00037     this->__buildGaussLobatto(degree);
00038   }
00039   return *__gaussLobatto[degree];
00040 }

Here is the call graph for this function:

ConstReferenceCounting< GaussLobatto > GaussLobattoManager::getReference ( const size_t &  n  )  const

Read-only access to a reference on the n th formula

Parameters:
n number of the set of vertices
Returns:
the
th formula

Definition at line 44 of file GaussLobattoManager.cpp.

References __buildGaussLobatto(), and __gaussLobatto.

Referenced by SpectralFEMPreconditioner::Internal::__lagrangeToLegendre(), and SpectralFEMPreconditioner::Internal::__lagrangeToLegendreTransposed().

00045 {
00046   if (degree+1>__gaussLobatto.size()) {
00047     this->__buildGaussLobatto(degree);
00048   }
00049   return __gaussLobatto[degree];
00050 }

Here is the call graph for this function:

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

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

Creates __pInstance in Embedding class.

Definition at line 55 of file StaticBase.hpp.

References StaticBase< EmbeddingClass >::__pInstance.

Referenced by ThreadStaticCenter::ThreadStaticCenter().

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

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

Destroyes __autoInstanciated in Embedding class.

Definition at line 64 of file StaticBase.hpp.

References StaticBase< EmbeddingClass >::__pInstance.

Referenced by ThreadStaticCenter::~ThreadStaticCenter().

00065   {
00066     delete __pInstance;
00067   }


Member Data Documentation

Stored Gauss-Lobatto formulae

Definition at line 43 of file GaussLobattoManager.hpp.

Referenced by __buildGaussLobatto(), get(), and getReference().

GaussLobattoManager * StaticBase< GaussLobattoManager >::__pInstance [static, protected, inherited]

The static variable

Definition at line 37 of file StaticBase.hpp.


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

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