Reworked Populations Loggers.

Added Save and Load Option for Population Data.
This commit is contained in:
Christian
2019-06-17 10:47:04 +02:00
parent bd64d5390f
commit 13ce5177a2
55 changed files with 3446 additions and 672 deletions
+4 -4
View File
@@ -18,7 +18,7 @@
template <class T>
class Manager_Base {
private:
std::vector<T*> Processes;
std::vector<T*> processes;
public:
Manager_Base() {};
@@ -35,12 +35,12 @@ inline void Manager_Base<T>::add(T* add) {
ss<<"Manager_Base::add_Process: Dublicate Insert of Process for this Species.";
throw MyException (ss.str());
}
Processes.push_back(add);
processes.push_back(add);
}
template <class T>
inline bool Manager_Base<T>::exists(species this_species) {
for (typename std::vector<T*>::iterator Itr = Processes.begin(); Itr!=Processes.end(); Itr++) {
for (typename std::vector<T*>::iterator Itr = processes.begin(); Itr!=processes.end(); Itr++) {
if ((*Itr)->get_species() == this_species) {
return (true);
}
@@ -50,7 +50,7 @@ inline bool Manager_Base<T>::exists(species this_species) {
template <class T>
inline T* Manager_Base<T>::find(species this_species) {
for (typename std::vector<T*>::iterator Itr = Processes.begin(); Itr!=Processes.end(); Itr++) {
for (typename std::vector<T*>::iterator Itr = processes.begin(); Itr!=processes.end(); Itr++) {
if ((*Itr)->get_species() == this_species) {
return (*Itr);
}