Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 24d13a0d authored by LUISELLI Juliette's avatar LUISELLI Juliette
Browse files

add recombinations_ to DnaReplicationReport

parent cb0a1fd3
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,7 @@
#include "SmallDeletion.h"
#include "PointMutation.h"
#include "SmallInsertion.h"
#include "Recombination.h"
namespace aevol {
......@@ -55,6 +56,9 @@ void DnaReplicationReport::clear() {
ht_.clear();
rearrangements_.clear();
mutations_.clear();
#ifdef __EUKARYOTE
recombinations_.clear();
#endif
nb_mut_[SWITCH] = 0;
nb_mut_[S_INS] = 0;
......@@ -65,6 +69,9 @@ void DnaReplicationReport::clear() {
nb_mut_[INV] = 0;
nb_mut_[INS_HT] = 0;
nb_mut_[REPL_HT]= 0;
#ifdef __EUKARYOTE
nb_mut_[RECOMB] = 0;
#endif
}
DnaReplicationReport::DnaReplicationReport(const DnaReplicationReport& other) {
......
......@@ -34,6 +34,7 @@
#include "LocalMutation.h"
#include "HorizontalTransfer.h"
#include "Rearrangement.h"
#include "Recombination.h"
namespace aevol {
......@@ -74,6 +75,11 @@ class DnaReplicationReport {
const std::list<std::unique_ptr<const HorizontalTransfer>>& HT() const {
return ht_;
};
#ifdef __EUKARYOTE
const std::list<std::unique_ptr<const Recombination>>& recombinations() const {
return recombinations_;
};
#endif
int32_t nb(MutationType t) const;
// Public Methods
......@@ -105,6 +111,9 @@ class DnaReplicationReport {
std::list<std::unique_ptr<const LocalMutation>> mutations_;
std::list<std::unique_ptr<const Rearrangement>> rearrangements_;
std::list<std::unique_ptr<const HorizontalTransfer>> ht_;
#ifdef __EUKARYOTE
std::list<std::unique_ptr<const Recombination>> recombinations_;
#endif
// Number of mutations/rearrangements/HT of each (simple) type undergone
int32_t nb_mut_[10] = {0,0,0,0,0,0,0,0,0,0};
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment