Add destructors that remove key-value pairs from maps

This commit is contained in:
Paul Romano 2019-07-05 21:09:04 -05:00
parent 0c32470551
commit 7db1511f00
6 changed files with 20 additions and 2 deletions

View file

@ -43,9 +43,10 @@ public:
double fraction; //!< How often to use table
};
// Constructors
// Constructors and destructors
Material() {};
explicit Material(pugi::xml_node material_node);
~Material();
// Methods
void calculate_xs(Particle& p) const;

View file

@ -62,7 +62,7 @@ public:
//! \return Pointer to the new filter object
static Filter* create(pugi::xml_node node);
virtual ~Filter() = default;
virtual ~Filter();
virtual std::string type() const = 0;

View file

@ -25,6 +25,8 @@ class Tally {
public:
explicit Tally(int32_t id);
~Tally();
static Tally* create(int32_t id = -1);
void init_from_xml(pugi::xml_node node);