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

#882 - #887 Rename Private namespace in FormulationSolver, PostProcessing and Core.

parent ffd26d7d
This diff is collapsed.
......@@ -19,7 +19,7 @@ namespace HappyHeart
{
namespace Private
namespace Impl
{
......@@ -31,7 +31,7 @@ namespace HappyHeart
} // namespace Private
} // namespace Impl
} // namespace InputParameter
......
......@@ -45,7 +45,7 @@ namespace HappyHeart
} // namespace Crtp
namespace Private
namespace Impl
{
......@@ -59,7 +59,7 @@ namespace HappyHeart
} // namespace Private
} // namespace Impl
} // namespace InputParameter
......
......@@ -20,13 +20,13 @@ namespace HappyHeart
{
namespace Private
namespace Impl
{
} // namespace Private
} // namespace Impl
} // namespace InputParameter
......
......@@ -14,7 +14,7 @@
# include "Core/InputParameter/Crtp/Section.hpp"
# include "Core/InputParameter/Geometry/Domain.hpp"
# include "Core/InputParameter/DirichletBoundaryCondition/Private/DirichletBoundaryCondition.hpp"
# include "Core/InputParameter/DirichletBoundaryCondition/Impl/DirichletBoundaryCondition.hpp"
namespace HappyHeart
......@@ -72,42 +72,42 @@ namespace HappyHeart
//! Name of the bc.
struct Name : public Crtp::InputParameter<Name, self, std::string>,
public Private::DirichletBoundaryConditionNS::Name
public Impl::DirichletBoundaryConditionNS::Name
{ };
//! Indicates the domain upon which the finite element space is defined. This domain must be uni-dimensional.
struct Component : public Crtp::InputParameter<Component, self, std::string>,
public Private::DirichletBoundaryConditionNS::Component
public Impl::DirichletBoundaryConditionNS::Component
{ };
//! Indicates which unknowns are defined on the finite element space.
struct UnknownName : public Crtp::InputParameter<UnknownName, self, std::string>,
public Private::DirichletBoundaryConditionNS::UnknownName
public Impl::DirichletBoundaryConditionNS::UnknownName
{ };
//! Indicates for each unknowns the shape function to use.
struct Values : public Crtp::InputParameter<Values, self, std::vector<double>>,
public Private::DirichletBoundaryConditionNS::Values
public Impl::DirichletBoundaryConditionNS::Values
{ };
//! Indicates the numbering subset to use for each unknown.
struct DomainIndex: public Crtp::InputParameter<DomainIndex, self, unsigned int>,
public Private::DirichletBoundaryConditionNS::DomainIndex
public Impl::DirichletBoundaryConditionNS::DomainIndex
{ };
//! Indicates whether the boundary condition values might change at each time iteration,
struct IsMutable: public Crtp::InputParameter<IsMutable, self, bool>,
public Private::DirichletBoundaryConditionNS::IsMutable
public Impl::DirichletBoundaryConditionNS::IsMutable
{ };
//! Indicates whether the boundary condition might overlap with another.
struct MayOverlap: public Crtp::InputParameter<MayOverlap, self, bool>,
public Private::DirichletBoundaryConditionNS::MayOverlap
public Impl::DirichletBoundaryConditionNS::MayOverlap
{ };
......
......@@ -23,7 +23,7 @@ namespace HappyHeart
template<unsigned int IndexT>
const std::string& DirichletBoundaryCondition<IndexT>::GetName()
{
static std::string ret = Private::GenerateSectionName("EssentialBoundaryCondition", IndexT);
static std::string ret = Impl::GenerateSectionName("EssentialBoundaryCondition", IndexT);
return ret;
};
......
......@@ -10,7 +10,7 @@
#include "Utilities/String/EmptyString.hpp"
#include "Core/InputParameter/DirichletBoundaryCondition/Private/DirichletBoundaryCondition.hpp"
#include "Core/InputParameter/DirichletBoundaryCondition/Impl/DirichletBoundaryCondition.hpp"
namespace HappyHeart
......@@ -21,7 +21,7 @@ namespace HappyHeart
{
namespace Private
namespace Impl
{
......@@ -219,7 +219,7 @@ namespace HappyHeart
} // namespace DirichletBoundaryConditionNS
} // namespace Private
} // namespace Impl
} // namespace InputParameter
......
//! \file
//! \file
//
//
// DirichletBoundaryCondition.hpp
......@@ -8,8 +8,8 @@
// Copyright © 2015 Inria. All rights reserved.
//
#ifndef HAPPY_HEART_x_CORE_x_INPUT_PARAMETER_x_DIRICHLET_BOUNDARY_CONDITION_x_PRIVATE_x_DIRICHLET_BOUNDARY_CONDITION_HPP_
# define HAPPY_HEART_x_CORE_x_INPUT_PARAMETER_x_DIRICHLET_BOUNDARY_CONDITION_x_PRIVATE_x_DIRICHLET_BOUNDARY_CONDITION_HPP_
#ifndef HAPPY_HEART_x_CORE_x_INPUT_PARAMETER_x_DIRICHLET_BOUNDARY_CONDITION_x_IMPL_x_DIRICHLET_BOUNDARY_CONDITION_HPP_
# define HAPPY_HEART_x_CORE_x_INPUT_PARAMETER_x_DIRICHLET_BOUNDARY_CONDITION_x_IMPL_x_DIRICHLET_BOUNDARY_CONDITION_HPP_
# include <memory>
# include <vector>
......@@ -17,31 +17,31 @@
namespace HappyHeart
{
namespace InputParameter
{
namespace Private
namespace Impl
{
namespace DirichletBoundaryConditionNS
{
//! Holds information related to the input parameter BoundaryCondition::variable.
struct Name
{
//! Name of the input parameter in Lua input file.
static const std::string& NameInFile();
//! Description of the input parameter.
static const std::string& Description();
/*!
* \return Constraint to fulfill.
*
......@@ -60,8 +60,8 @@ namespace HappyHeart
* element of the vector.
*/
static const std::string& Constraint();
/*!
* \return Default value.
*
......@@ -73,18 +73,18 @@ namespace HappyHeart
static const std::string& DefaultValue();
};
//! Holds information related to the input parameter BoundaryCondition::variable.
struct UnknownName
{
//! Name of the input parameter in Lua input file.
static const std::string& NameInFile();
//! Description of the input parameter.
static const std::string& Description();
/*!
* \return Constraint to fulfill.
*
......@@ -103,8 +103,8 @@ namespace HappyHeart
* element of the vector.
*/
static const std::string& Constraint();
/*!
* \return Default value.
*
......@@ -116,19 +116,19 @@ namespace HappyHeart
static const std::string& DefaultValue();
};
//! Holds information related to the input parameter BoundaryCondition::component.
struct Component
{
//! Name of the input parameter in Lua input file.
static const std::string& NameInFile();
//! Description of the input parameter.
static const std::string& Description();
/*!
* \return Constraint to fulfill.
*
......@@ -147,8 +147,8 @@ namespace HappyHeart
* element of the vector.
*/
static const std::string& Constraint();
/*!
* \return Default value.
*
......@@ -159,20 +159,20 @@ namespace HappyHeart
*/
static const std::string& DefaultValue();
};
//! Lit of all domains upon which a boudnary condition occur.
struct DomainIndex
{
//! Name of the input parameter in Lua input file.
static const std::string& NameInFile();
//! Description of the input parameter.
static const std::string& Description();
/*!
* \return Constraint to fulfill.
*
......@@ -191,8 +191,8 @@ namespace HappyHeart
* element of the vector.
*/
static const std::string& Constraint();
/*!
* \return Default value.
*
......@@ -203,20 +203,20 @@ namespace HappyHeart
*/
static const std::string& DefaultValue();
};
//! Holds information related to the input parameter BoundaryCondition::value.
struct Values
{
//! Name of the input parameter in Lua input file.
static const std::string& NameInFile();
//! Description of the input parameter.
static const std::string& Description();
/*!
* \return Constraint to fulfill.
*
......@@ -235,8 +235,8 @@ namespace HappyHeart
* element of the vector.
*/
static const std::string& Constraint();
/*!
* \return Default value.
*
......@@ -247,19 +247,19 @@ namespace HappyHeart
*/
static const std::string& DefaultValue();
};
struct IsMutable
{
//! Name of the input parameter in Lua input file.
static const std::string& NameInFile();
//! Description of the input parameter.
static const std::string& Description();
/*!
* \return Constraint to fulfill.
*
......@@ -278,8 +278,8 @@ namespace HappyHeart
* element of the vector.
*/
static const std::string& Constraint();
/*!
* \return Default value.
*
......@@ -291,17 +291,17 @@ namespace HappyHeart
static const std::string& DefaultValue();
};
struct MayOverlap
{
//! Name of the input parameter in Lua input file.
static const std::string& NameInFile();
//! Description of the input parameter.
static const std::string& Description();
/*!
* \return Constraint to fulfill.
*
......@@ -320,8 +320,8 @@ namespace HappyHeart
* element of the vector.
*/
static const std::string& Constraint();
/*!
* \return Default value.
*
......@@ -333,18 +333,18 @@ namespace HappyHeart
static const std::string& DefaultValue();
};
} // namespace DirichletBoundaryConditionNS
} // namespace Private
} // namespace Impl
} // namespace InputParameter
} // namespace HappyHeart
#endif // HAPPY_HEART_x_CORE_x_INPUT_PARAMETER_x_DIRICHLET_BOUNDARY_CONDITION_x_PRIVATE_x_DIRICHLET_BOUNDARY_CONDITION_HPP_
#endif // HAPPY_HEART_x_CORE_x_INPUT_PARAMETER_x_DIRICHLET_BOUNDARY_CONDITION_x_IMPL_x_DIRICHLET_BOUNDARY_CONDITION_HPP_
......@@ -13,7 +13,7 @@
# include "Core/InputParameter/Crtp/Section.hpp"
# include "Core/InputParameter/FElt/Private/FEltSpace.hpp"
# include "Core/InputParameter/FElt/Impl/FEltSpace.hpp"
namespace HappyHeart
......@@ -75,31 +75,31 @@ namespace HappyHeart
* God of dof index is the same as mesh one.
*/
struct GodOfDofIndex : public Crtp::InputParameter<GodOfDofIndex, self, unsigned int>,
public Private::FEltSpaceNS::GodOfDofIndex
public Impl::FEltSpaceNS::GodOfDofIndex
{ };
//! Indicates the domain upon which the finite element space is defined. This domain must be uni-dimensional.
struct DomainIndex : public Crtp::InputParameter<DomainIndex, self, unsigned int>,
public Private::FEltSpaceNS::DomainIndex
public Impl::FEltSpaceNS::DomainIndex
{ };
//! Indicates which unknowns are defined on the finite element space.
struct UnknownList : public Crtp::InputParameter<UnknownList, self, std::vector<std::string>>,
public Private::FEltSpaceNS::UnknownList
public Impl::FEltSpaceNS::UnknownList
{ };
//! Indicates for each unknowns the shape function to use.
struct ShapeFunctionList : public Crtp::InputParameter<ShapeFunctionList, self, std::vector<std::string>>,
public Private::FEltSpaceNS::ShapeFunctionList
public Impl::FEltSpaceNS::ShapeFunctionList
{ };
//! Indicates the numbering subset to use for each unknown.
struct NumberingSubsetList: public Crtp::InputParameter<NumberingSubsetList, self, std::vector<unsigned int>>,
public Private::FEltSpaceNS::NumberingSubsetList
public Impl::FEltSpaceNS::NumberingSubsetList
{ };
......
......@@ -23,7 +23,7 @@ namespace HappyHeart
template<unsigned int IndexT>
const std::string& FEltSpace<IndexT>::GetName()
{
static std::string ret = Private::GenerateSectionName("FiniteElementSpace", IndexT);
static std::string ret = Impl::GenerateSectionName("FiniteElementSpace", IndexT);
return ret;
};
......
......@@ -10,7 +10,7 @@
#include "Utilities/String/EmptyString.hpp"
#include "Core/InputParameter/FElt/Private/FEltSpace.hpp"
#include "Core/InputParameter/FElt/Impl/FEltSpace.hpp"
......@@ -22,7 +22,7 @@ namespace HappyHeart
{
namespace Private
namespace Impl
{
......@@ -171,7 +171,7 @@ namespace HappyHeart
} // namespace FEltSpaceNS
} // namespace Private
} // namespace Impl
} // namespace InputParameter
......
//! \file
//! \file
//
//
// FEltSpace.hpp
......@@ -8,37 +8,37 @@
// Copyright (c) 2015 Inria. All rights reserved.
//
#ifndef HAPPY_HEART_x_CORE_x_INPUT_PARAMETER_x_F_ELT_x_PRIVATE_x_F_ELT_SPACE_HPP_
# define HAPPY_HEART_x_CORE_x_INPUT_PARAMETER_x_F_ELT_x_PRIVATE_x_F_ELT_SPACE_HPP_
#ifndef HAPPY_HEART_x_CORE_x_INPUT_PARAMETER_x_F_ELT_x_IMPL_x_F_ELT_SPACE_HPP_
# define HAPPY_HEART_x_CORE_x_INPUT_PARAMETER_x_F_ELT_x_IMPL_x_F_ELT_SPACE_HPP_
namespace HappyHeart
{
namespace InputParameter
{
namespace Private
namespace Impl
{
namespace FEltSpaceNS
{
//! Helper class that defines non template static functions of namesake class in FEltSpace namespace.
struct GodOfDofIndex
{
//! Name of the input parameter in Lua input file.