mark constructors explicit

This commit is contained in:
Arne Morten Kvarving
2018-08-13 11:20:53 +02:00
parent e48f1ebbf5
commit d9f4ded461
5 changed files with 11 additions and 11 deletions

View File

@@ -30,7 +30,7 @@ class MultiPatchModelGenerator1D : public ModelGenerator
public:
//! \brief The constructor initializes common members.
//!\ param[in] elem XML element to parse
MultiPatchModelGenerator1D(const TiXmlElement* elem);
explicit MultiPatchModelGenerator1D(const TiXmlElement* elem);
//! \brief Empty destructor.
virtual ~MultiPatchModelGenerator1D() {}
@@ -71,7 +71,7 @@ class MultiPatchModelGenerator2D : public ModelGenerator
public:
//! \brief The constructor initializes common members.
//!\ param[in] elem XML element to parse
MultiPatchModelGenerator2D(const TiXmlElement* elem);
explicit MultiPatchModelGenerator2D(const TiXmlElement* elem);
//! \brief Empty destructor.
virtual ~MultiPatchModelGenerator2D() {}
@@ -118,7 +118,7 @@ class MultiPatchModelGenerator3D : public ModelGenerator
public:
//! \brief The constructor initializes common members.
//! \param[in] geo XML element to parse
MultiPatchModelGenerator3D(const TiXmlElement* geo);
explicit MultiPatchModelGenerator3D(const TiXmlElement* geo);
//! \brief Empty destructor.
virtual ~MultiPatchModelGenerator3D() {}

View File

@@ -26,7 +26,7 @@ class NodalConstraintASMHelper {
public:
//! \brief Constructor
//! \param pch The associated ASM class
NodalConstraintASMHelper(ASMbase* pch) : bpch(pch) {}
explicit NodalConstraintASMHelper(ASMbase* pch) : bpch(pch) {}
//! \brief Empty destructor
virtual ~NodalConstraintASMHelper() {}
@@ -90,7 +90,7 @@ class NodalConstraintASMs1DHelper : public NodalConstraintASMHelper {
public:
//! \brief Constructor
//! \param spch The associated ASM class
NodalConstraintASMs1DHelper(ASMs1D* spch) :
explicit NodalConstraintASMs1DHelper(ASMs1D* spch) :
NodalConstraintASMHelper(spch), pch(spch) {}
//! \brief Obtain the global node number of a given corner node on patch.
@@ -118,7 +118,7 @@ class NodalConstraintASMs2DHelper : public NodalConstraintASMHelper {
public:
//! \brief Constructor
//! \param spch The associated ASM class
NodalConstraintASMs2DHelper(ASMs2D* spch) :
explicit NodalConstraintASMs2DHelper(ASMs2D* spch) :
NodalConstraintASMHelper(spch), pch(spch) {}
//! \copydoc NodalConstraintASMHelper::getCorner
@@ -172,7 +172,7 @@ class NodalConstraintASMs3DHelper : public NodalConstraintASMHelper {
public:
//! \brief Constructor
//! \param spch The associated patch
NodalConstraintASMs3DHelper(ASMs3D* spch) :
explicit NodalConstraintASMs3DHelper(ASMs3D* spch) :
NodalConstraintASMHelper(spch), pch(spch) {}
//! \copydoc NodalConstraintASMHelper::getCorner
@@ -299,7 +299,7 @@ class NodalConstraintASMu2DHelper : public NodalConstraintASMHelper {
public:
//! \brief Constructor
//! \param upch Associated patch
NodalConstraintASMu2DHelper(ASMu2D* upch) :
explicit NodalConstraintASMu2DHelper(ASMu2D* upch) :
NodalConstraintASMHelper(upch), pch(upch) {}
//! \copydoc NodalConstraintASM2DHelper::getCorner

View File

@@ -44,7 +44,7 @@ template<class Dim> class SIMNodalConstraint : public Dim
public:
//! \brief The constructor forwards to the parent class constructor.
SIMNodalConstraint(const std::vector<unsigned char>& unf) : Dim(unf) {}
explicit SIMNodalConstraint(const std::vector<unsigned char>& unf) : Dim(unf) {}
//! \brief Empty destructor.
virtual ~SIMNodalConstraint() {}

View File

@@ -32,7 +32,7 @@ class ASMu3Dmx : public ASMu3D, private ASMmxBase
{
public:
//! \brief The constructor initializes the dimension of each basis.
ASMu3Dmx(const CharVec& n_f);
explicit ASMu3Dmx(const CharVec& n_f);
//! \brief Copy constructor.
ASMu3Dmx(const ASMu3Dmx& patch, const CharVec& n_f = CharVec(3,0));
//! \brief Empty destructor.

View File

@@ -36,7 +36,7 @@ protected:
//! \brief The constructor opens the provided HDF5-file.
//! \param[in] fileName Name of the HDF5-file
FieldFuncBase(const std::string& fileName);
explicit FieldFuncBase(const std::string& fileName);
//! \brief The destructor deletes the patches and close the HDF5-file.
virtual ~FieldFuncBase();