Skip to content
Snippets Groups Projects
Commit 0c53d1a9 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing IO

parent 0322d423
No related branches found
No related tags found
No related merge requests found
...@@ -16,8 +16,7 @@ ...@@ -16,8 +16,7 @@
/*! \brief for each combination in the cell grid you can have different grids /*! \brief for each combination in the cell grid you can have different grids
* *
* \param grid * \tparam Grid type of grid
* \param cg combination
* *
*/ */
template <typename Grid> template <typename Grid>
...@@ -29,37 +28,49 @@ struct cell_grid ...@@ -29,37 +28,49 @@ struct cell_grid
// combination // combination
comb<Grid::dims> cmb; comb<Grid::dims> cmb;
cell_grid() {}
//! construct a cell grid //! construct a cell grid
cell_grid(const comb<Grid::dims> & cmb) cell_grid(const comb<Grid::dims> & cmb)
:cmb(cmb) :cmb(cmb)
{} {}
//! Copy constructor cell_grid(const cell_grid<Grid> & cg)
inline cell_grid(const cell_grid<Grid> & ele)
{ {
this->operator=(ele); this->operator=(cg);
} }
//! Copy constructor cell_grid(cell_grid<Grid> && cg)
inline cell_grid(cell_grid<Grid> && ele)
{ {
this->operator=(ele); this->operator=(cg);
} }
//! Copy constructor /*! \brief Copy the cell grid
inline cell_grid<Grid> & operator=(const cell_grid<Grid> & ele) *
* \param cg cell_grid to copy
*
* \return itself
*
*/
cell_grid<Grid> & operator=(const cell_grid<Grid> & cg)
{ {
cmb = ele.cmb; cmb = cg.cmb;
grids = ele.grids; grids = cg.grids;
return *this; return *this;
} }
//! Copy constructor /*! \brief Copy the cell grid
inline cell_grid<Grid> & operator=(cell_grid<Grid> && ele) *
* \param cg cell_grid to copy
*
* \return itself
*
*/
cell_grid<Grid> & operator=(cell_grid<Grid> && cg)
{ {
cmb = ele.cmb; cmb = cg.cmb;
grids = ele.grids; grids = cg.grids;
return *this; return *this;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment