Commit fb1e2f6a authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#1359 Fix warning by making all singleton destructors explicit in source files.

parent 30a981a2
......@@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildSystemType</key>
<string>Original</string>
<key>IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded</key>
<true/>
</dict>
......
......@@ -24,6 +24,9 @@ namespace MoReFEM
namespace NumberingSubsetNS
{
NumberingSubsetManager::~NumberingSubsetManager() = default;
const std::string& NumberingSubsetManager::ClassName()
......
......@@ -62,9 +62,6 @@ namespace MoReFEM
template<class UnknownSectionT>
void Create(const UnknownSectionT& section);
//! Destructor.
~NumberingSubsetManager() = default;
/*!
* \class doxygen_hide_numbering_subset_manager_unique_id_arg
*
......@@ -122,6 +119,9 @@ namespace MoReFEM
//! Constructor.
NumberingSubsetManager() = default;
//! Destructor.
virtual ~NumberingSubsetManager() override;
//! Friendship declaration to Singleton template class (to enable call to constructor).
friend class Utilities::Singleton<NumberingSubsetManager>;
///@}
......
......@@ -14,6 +14,9 @@
namespace MoReFEM
{
DirichletBoundaryConditionManager::~DirichletBoundaryConditionManager() = default;
const std::string& DirichletBoundaryConditionManager::ClassName()
......
......@@ -56,13 +56,13 @@ namespace MoReFEM
using input_parameter_type = InputParameter::BaseNS::DirichletBoundaryCondition;
public:
private:
/// \name Special members
///@{
//! Destructor.
~DirichletBoundaryConditionManager() = default;
virtual ~DirichletBoundaryConditionManager() override;
//! Copy constructor.
DirichletBoundaryConditionManager(const DirichletBoundaryConditionManager&) = delete;
......
......@@ -27,6 +27,9 @@ namespace MoReFEM
namespace BoundaryConditionNS
{
ComponentFactory::~ComponentFactory() = default;
const std::string& ComponentFactory::ClassName()
......
......@@ -91,6 +91,9 @@ namespace MoReFEM
//! Constructor.
ComponentFactory();
//! Destructor.
virtual ~ComponentFactory() override;
//! Friendship declaration to Singleton template class (to enable call to constructor).
friend class Utilities::Singleton<ComponentFactory>;
///@}
......
......@@ -17,7 +17,10 @@
namespace MoReFEM
{
GodOfDofManager::~GodOfDofManager() = default;
const std::string& GodOfDofManager::ClassName()
{
......
......@@ -71,10 +71,6 @@ namespace MoReFEM
void Create(const MeshSectionT& section,
const Wrappers::Mpi& mpi);
//! Destructor.
~GodOfDofManager() = default;
//! Fetch the god of dof object associated with \a unique_id unique identifier.
const GodOfDof& GetGodOfDof(unsigned int unique_id) const;
......@@ -96,6 +92,9 @@ namespace MoReFEM
//! Constructor.
GodOfDofManager();
//! Destructor.
virtual ~GodOfDofManager() override;
//! Friendship declaration to Singleton template class (to enable call to constructor).
friend class Utilities::Singleton<GodOfDofManager>;
///@}
......
......@@ -23,6 +23,10 @@ namespace MoReFEM
namespace FEltSpaceNS
{
DofProgramWiseIndexListPerVertexCoordIndexListManager
::~DofProgramWiseIndexListPerVertexCoordIndexListManager() = default;
const std::string& DofProgramWiseIndexListPerVertexCoordIndexListManager::ClassName()
......
......@@ -91,10 +91,6 @@ namespace MoReFEM
void Create(const SectionT& section,
const GodOfDof& god_of_dof);
//! Destructor.
~DofProgramWiseIndexListPerVertexCoordIndexListManager() = default;
//! Fetch the object associated with \a unique_id unique identifier.
const DofProgramWiseIndexListPerVertexCoordIndexList&
GetDofProgramWiseIndexListPerVertexCoordIndexList(unsigned int unique_id) const;
......@@ -132,6 +128,9 @@ namespace MoReFEM
//! Constructor.
DofProgramWiseIndexListPerVertexCoordIndexListManager() = default;
//! Destructor.
virtual ~DofProgramWiseIndexListPerVertexCoordIndexListManager() override;
//! Friendship declaration to Singleton template class (to enable call to constructor).
friend class Utilities::Singleton<DofProgramWiseIndexListPerVertexCoordIndexListManager>;
///@}
......
......@@ -27,6 +27,9 @@ namespace MoReFEM
namespace RefFEltNS
{
BasicRefFEltFactory::~BasicRefFEltFactory() = default;
const std::string& BasicRefFEltFactory::ClassName()
......
......@@ -141,6 +141,9 @@ namespace MoReFEM
//! Constructor.
BasicRefFEltFactory();
//! Destructor.
virtual ~BasicRefFEltFactory() override;
//! Friendship declaration to Singleton template class (to enable call to constructor).
friend class Utilities::Singleton<BasicRefFEltFactory>;
///@}
......
......@@ -14,6 +14,9 @@
namespace MoReFEM
{
UnknownManager::~UnknownManager() = default;
const std::string& UnknownManager::ClassName()
......
......@@ -51,8 +51,7 @@ namespace MoReFEM
/// \name Special members.
///@{
//! Destructor.
~UnknownManager() = default;
//! Copy constructor.
UnknownManager(const UnknownManager&) = delete;
......@@ -118,6 +117,9 @@ namespace MoReFEM
//! Constructor.
UnknownManager() = default;
//! Destructor.
virtual ~UnknownManager() override;
//! Friendship declaration to Singleton template class (to enable call to constructor).
friend class Utilities::Singleton<UnknownManager>;
///@}
......
......@@ -18,6 +18,9 @@ namespace MoReFEM
namespace Advanced
{
LightweightDomainListManager::~LightweightDomainListManager() = default;
const std::string& LightweightDomainListManager::ClassName()
......
......@@ -88,6 +88,9 @@ namespace MoReFEM
//! Constructor.
LightweightDomainListManager();
//! Destructor.
virtual ~LightweightDomainListManager() override;
//! Friendship declaration to Singleton template class (to enable call to constructor).
friend class Utilities::Singleton<LightweightDomainListManager>;
///@}
......
......@@ -14,6 +14,9 @@
namespace MoReFEM
{
DomainManager::~DomainManager() = default;
const std::string& DomainManager::ClassName()
......
......@@ -193,6 +193,9 @@ namespace MoReFEM
//! Constructor.
DomainManager();
//! Destructor.
virtual ~DomainManager() override;
//! Friendship declaration to Singleton template class (to enable call to constructor).
friend class Utilities::Singleton<DomainManager>;
///@}
......
......@@ -26,6 +26,9 @@ namespace MoReFEM
namespace Advanced
{
GeometricEltFactory::~GeometricEltFactory() = default;
const std::string GeometricEltFactory::ClassName()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment