#include <GaussLobattoManager.hpp>


Public Member Functions | |
| const GaussLobatto & | get (const size_t &n) const |
| ConstReferenceCounting < GaussLobatto > | getReference (const size_t &n) const |
| GaussLobattoManager () | |
| ~GaussLobattoManager () | |
Static Public Member Functions | |
| static GaussLobattoManager & | instance () |
| 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 |
Definition at line 37 of file GaussLobattoManager.hpp.
| GaussLobattoManager::GaussLobattoManager | ( | ) | [inline] |
| GaussLobattoManager::~GaussLobattoManager | ( | ) | [inline] |
| void GaussLobattoManager::__buildGaussLobatto | ( | const size_t & | n | ) | const [private] |
Builds missing Gauss-Lobatto formulae up to n
| 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
| n | number of the set of vertices |
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 }

| ConstReferenceCounting< GaussLobatto > GaussLobattoManager::getReference | ( | const size_t & | n | ) | const |
Read-only access to a reference on the n th formula
| n | number of the set of vertices |
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 }

| static GaussLobattoManager & StaticBase< GaussLobattoManager >::instance | ( | ) | [inline, static, inherited] |
Access to auto instanciated static;
Definition at line 46 of file StaticBase.hpp.
References StaticBase< EmbeddingClass >::__pInstance.
Referenced by SpectralFEMPreconditioner::Internal::__lagrangeToLegendre(), SpectralFEMPreconditioner::Internal::__lagrangeToLegendreTransposed(), SpectralFEMPreconditioner::Internal::computes(), SpectralFEMPreconditioner::Internal::computesTransposed(), RealExpressionIntegrate::execute(), and SpectralMesh::SpectralMesh().
00047 { 00048 return *__pInstance; 00049 }
| 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 }
std::vector<ConstReferenceCounting<GaussLobatto> > GaussLobattoManager::__gaussLobatto [mutable, private] |
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.
1.5.6