FFPopSim  2.0
Library for Population Genetics
 All Classes Files Functions Variables Macros Pages
multi_locus_genealogy Class Reference

#include <ffpopsim_highd.h>

Public Member Functions

 multi_locus_genealogy ()
 Default constructor. More...
 
virtual ~multi_locus_genealogy ()
 Default destructor. More...
 
void track_locus (int new_locus)
 Start tracking a new locus. More...
 
void reset ()
 
void reset_but_loci ()
 
void add_generation (double baseline)
 Add a new generation to all trees. More...
 
int extend_storage (int n)
 : allocates memory for a sufficient number of slots in the genealogy More...
 

Public Attributes

vector< int > loci
 
vector< rooted_treetrees
 
vector< vector< node_t > > newGenerations
 

Constructor & Destructor Documentation

multi_locus_genealogy::multi_locus_genealogy ( )

Default constructor.

multi_locus_genealogy::~multi_locus_genealogy ( )
virtual

Default destructor.

Member Function Documentation

void multi_locus_genealogy::add_generation ( double  baseline)

Add a new generation to all trees.

Parameters
baselinethe new generation to be added

Here is the caller graph for this function:

int multi_locus_genealogy::extend_storage ( int  n)

: allocates memory for a sufficient number of slots in the genealogy

: the total number of slots required (should be population.size() in most cases)

Here is the caller graph for this function:

void multi_locus_genealogy::reset ( )
inline

Here is the caller graph for this function:

void multi_locus_genealogy::reset_but_loci ( )
inline

Here is the caller graph for this function:

void multi_locus_genealogy::track_locus ( int  new_locus)

Start tracking a new locus.

Parameters
new_locuslocus to be tracked

Here is the caller graph for this function:

Member Data Documentation

vector<int> multi_locus_genealogy::loci
vector< vector < node_t > > multi_locus_genealogy::newGenerations
vector<rooted_tree> multi_locus_genealogy::trees

The documentation for this class was generated from the following files: