Skip to content

Commit

Permalink
Adding default constructors for pybind11 purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
whaeck committed Aug 12, 2024
1 parent fd76c11 commit 28f7562
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/scion/math/ChebyshevApproximation/src/ctor.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//! @todo pybind11 variant needs default constructor workaround
#ifdef PYBIND11
/**
* @brief Default constructor - only enabled for pybind11
*/
ChebyshevApproximation() = default;
#endif

/**
* @brief Constructor
*
Expand Down
8 changes: 8 additions & 0 deletions src/scion/math/ChebyshevSeries/src/ctor.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//! @todo pybind11 variant needs default constructor workaround
#ifdef PYBIND11
/**
* @brief Default constructor - only enabled for pybind11
*/
ChebyshevSeries() = default;
#endif

/**
* @brief Constructor
*
Expand Down
8 changes: 8 additions & 0 deletions src/scion/math/InterpolationTable/src/ctor.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//! @todo pybind11 variant needs default constructor workaround
#ifdef PYBIND11
/**
* @brief Default constructor - only enabled for pybind11
*/
InterpolationTable() = default;
#endif

/**
* @brief Copy constructor
*
Expand Down
8 changes: 8 additions & 0 deletions src/scion/math/InterpolationTableFunction/src/ctor.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//! @todo pybind11 variant needs default constructor workaround
#ifdef PYBIND11
/**
* @brief Default constructor - only enabled for pybind11
*/
InterpolationTableFunction() = default;
#endif

/**
* @brief Copy constructor
*
Expand Down
8 changes: 8 additions & 0 deletions src/scion/math/LegendreSeries/src/ctor.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//! @todo pybind11 variant needs default constructor workaround
#ifdef PYBIND11
/**
* @brief Default constructor - only enabled for pybind11
*/
LegendreSeries() = default;
#endif

/**
* @brief Constructor
*
Expand Down
8 changes: 8 additions & 0 deletions src/scion/math/PolynomialSeries/src/ctor.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//! @todo pybind11 variant needs default constructor workaround
#ifdef PYBIND11
/**
* @brief Default constructor - only enabled for pybind11
*/
PolynomialSeries() = default;
#endif

/**
* @brief Constructor
*
Expand Down
8 changes: 8 additions & 0 deletions src/scion/math/SeriesBase/src/ctor.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//! @todo pybind11 variant needs default constructor workaround
#ifdef PYBIND11
/**
* @brief Default constructor - only enabled for pybind11
*/
SeriesBase() = default;
#endif

/**
* @brief Constructor
*
Expand Down

0 comments on commit 28f7562

Please sign in to comment.