|
phylopomp
Phylodynamics for POMPs
|
Encodes the master process. More...
#include <master.h>


Public Types | |
| typedef POPN | popul_t |
Public Member Functions | |
| size_t | bytesize (void) const |
| size of serialized binary form | |
| master_t (double t0=0) | |
| master_t (raw_t *o) | |
| constructor from serialized binary form | |
| master_t (SEXP o) | |
| constructor from RAW SEXP (containing binary serialization) | |
| master_t (const master_t &A) | |
| copy constructor | |
| master_t & | operator= (const master_t &A) |
| copy assignment operator | |
| master_t (master_t &&)=default | |
| move constructor | |
| master_t & | operator= (master_t &&)=default |
| move assignment operator | |
| ~master_t (void) | |
| destructor | |
| slate_t | timezero (void) const |
| get zero-time | |
| int | play (double tfin) |
runs the process to time tfin | |
| slate_t | time (void) const |
| current time | |
| std::string | describe (void) const |
| human-readable info | |
| std::string | yaml (std::string tab="") const |
| machine/human readable info | |
| std::string | newick (void) const |
| tree in Newick format | |
| SEXP | lineage_count (void) const |
| lineage count table | |
| SEXP | structure (void) const |
| structure in R list format | |
| void | birth (name_t i=0, name_t j=0, int n=1) |
| n births into deme j with parent in deme i | |
| void | death (name_t i=0) |
| death in deme i | |
| void | graft (name_t i=0, int m=1) |
| new root in deme i | |
| void | sample (name_t i=0, int n=1) |
| sample in deme i | |
| void | sample_death (name_t i=0, int n=1) |
| sample_death in deme i | |
| void | migrate (name_t i=0, name_t j=0) |
| migration from deme i to deme j | |
| void | rinit (void) |
| initialize the state | |
| void | jump (int e) |
| makes a jump | |
Data Fields | |
| genealogy_t | geneal |
| inventory_t< ndeme > | inventory |
Static Public Attributes | |
| static const size_t | ndeme = NDEME |
Private Member Functions | |
| void | clean (void) |
Friends | |
| raw_t * | operator>> (const master_t &A, raw_t *o) |
| binary serialization | |
| raw_t * | operator>> (raw_t *o, master_t &A) |
| binary deserialization | |
Encodes the master process.
This consists of a population process and a genealogy process.
| typedef POPN master_t< POPN, NDEME >::popul_t |
|
inline |
|
inline |
|
inline |
constructor from RAW SEXP (containing binary serialization)
|
inline |
|
default |
move constructor
destructor
|
inline |
|
inline |
|
inlineprivate |
|
inline |
| void master_t< POPN, NDEME >::jump | ( | int | e | ) |
makes a jump
|
inline |
|
inline |
|
default |
move assignment operator
|
inline |
| void master_t< POPN, NDEME >::rinit | ( | void | ) |
initialize the state
|
inline |
|
inline |
| genealogy_t master_t< POPN, NDEME >::geneal |
| inventory_t<ndeme> master_t< POPN, NDEME >::inventory |
|
static |