Import Geant4 10.3.0 source tree
This commit is contained in:
@@ -41,17 +41,17 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
static void decrement(const char* a_class){
|
||||
counter()--;
|
||||
static void decrement(const char* a_class,unsigned int a_num = 1){
|
||||
counter() -= a_num;
|
||||
if(check_by_class()) {
|
||||
mem_list::iterator it;
|
||||
for(it=list().begin();it!=list().end();++it) {
|
||||
if(!::strcmp((*it).first.c_str(),a_class)) {
|
||||
(*it).second--;
|
||||
(*it).second -= a_num;
|
||||
return;
|
||||
}
|
||||
}
|
||||
list().push_back(std::pair<std::string,int>(std::string(a_class),-1));
|
||||
list().push_back(std::pair<std::string,int>(std::string(a_class),-int(a_num)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user