Updating attribute name and placing below methods.

This commit is contained in:
Patrick Shriwise 2019-11-06 15:28:06 -06:00
parent c20e942f1c
commit d37c416308
2 changed files with 94 additions and 91 deletions

View file

@ -18,10 +18,9 @@ namespace openmc {
static UniverseCellCounter* instance_;
std::map<int32_t, std::map<int32_t, int>> counts;
public:
// Methods
static UniverseCellCounter* instance() {
if (instance_ == nullptr)
instance_ = new UniverseCellCounter;
@ -29,8 +28,6 @@ namespace openmc {
return instance_;
}
void clear();
void set_cell_count_for_univ(int32_t univ, int32_t cell, int count);
@ -44,6 +41,9 @@ namespace openmc {
void absorb_b_into_a(int32_t a, int32_t b);
auto get_count(int32_t univ);
// Members
std::map<int32_t, std::map<int32_t, int>> counts_;
};
struct UniverseLevelCounter {
@ -54,10 +54,10 @@ namespace openmc {
static UniverseLevelCounter* instance_;
std::map<int32_t, int> counts;
public:
//Methods
static UniverseLevelCounter* instance() {
if (instance_ == nullptr)
instance_ = new UniverseLevelCounter;
@ -78,6 +78,9 @@ namespace openmc {
void set_count(int32_t univ, int count);
int get_count(int32_t univ);
// Members
std::map<int32_t, int> counts_;
};
void read_geometry_xml();