Reworked Populations Loggers.
Added Save and Load Option for Population Data.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user