Removing explicit keyword from empty constructors.

This commit is contained in:
pshriwise 2018-09-25 21:24:34 -05:00
parent 3c12328bc3
commit dc4f56ed0c
2 changed files with 7 additions and 5 deletions

View file

@ -113,7 +113,6 @@ public:
explicit Cell(pugi::xml_node cell_node);
Cell() {};
//! \brief Determine if a cell contains the particle at a given location.
//!
//! The bounds of the cell are detemined by a logical expression involving
@ -144,6 +143,7 @@ public:
//! @param group_id An HDF5 group id.
virtual void to_hdf5(hid_t group_id) const = 0;
virtual ~Cell() {}
};
class CSGCell : public Cell
@ -162,6 +162,8 @@ public:
void to_hdf5(hid_t group_id) const;
protected:
bool contains_simple(Position r, Direction u, int32_t on_surface) const;
bool contains_complex(Position r, Direction u, int32_t on_surface) const;
@ -172,7 +174,7 @@ class DAGCell : public Cell
{
public:
moab::DagMC *dagmc_ptr_;
explicit DAGCell();
DAGCell();
std::pair<double, int32_t> distance(Position p, Direction u, int32_t on_surface) const;
bool contains(Position p, Direction u, int32_t on_surface) const;

View file

@ -76,7 +76,7 @@ public:
std::vector<int> neighbor_neg_; //!< List of cells on negative side
explicit Surface(pugi::xml_node surf_node);
explicit Surface();
Surface();
virtual ~Surface() {}
@ -124,7 +124,7 @@ class CSGSurface : public Surface
{
public:
explicit CSGSurface(pugi::xml_node surf_node);
explicit CSGSurface();
CSGSurface();
void to_hdf5(hid_t group_id) const;
@ -140,7 +140,7 @@ class DAGSurface : public Surface
{
public:
moab::DagMC* dagmc_ptr_;
explicit DAGSurface();
DAGSurface();
double evaluate(Position p) const;
double distance(Position p, Direction u,
bool coincident) const;