|
phylopomp
Phylodynamics for POMPs
|
Encodes a genealogical node. More...
#include <node.h>


Public Member Functions | |
| size_t | bytesize (void) const |
| size of binary serialization | |
| void | reuniqify (name_t shift) |
| shifts name to avoid overlap | |
| node_t (name_t u=0, slate_t t=R_NaReal) | |
| basic constructor for node class | |
| node_t (const node_t &p)=delete | |
| copy constructor | |
| node_t (node_t &&p)=delete | |
| move constructor | |
| node_t & | operator= (const node_t &p)=delete |
| copy assignment operator | |
| node_t & | operator= (node_t &&p)=delete |
| move assignment operator | |
| ~node_t (void) | |
| destructor | |
| ball_t * | green_ball (void) const |
| pointer to my green ball | |
| ball_t *& | green_ball (void) |
| set green ball | |
| name_t | deme (void) const |
| view deme | |
| name_t & | deme (void) |
| set deme | |
| name_t | lineage (void) const |
| view lineage | |
| name_t | lineage (const ball_t *g) const |
| view lineage associated with a green ball | |
| name_t & | lineage (void) |
| set lineage | |
| node_t * | parent (void) const |
| bool | holds_own (void) const |
| bool | is_root (void) const |
| bool | dead_root (void) const |
| int | nchildren (void) const |
| number of descendants | |
| void | lineage_incr (int *incr, int *sat, int *etype) const |
| void | insert (ball_t *a) |
| insert a ball into the pocket of a node | |
| string_t | yaml (string_t tab="") const |
| human/machine-readable info | |
| SEXP | structure (void) const |
| R list description. | |
| string_t | newick (const slate_t &tnow, const slate_t &tpar, bool showdeme, bool extended) const |
| Newick-format output. | |
Public Member Functions inherited from pocket_t | |
| size_t | bytesize (void) const |
| size of binary serialization | |
| void | repair_owners (const std::unordered_map< name_t, node_t * > &node_name, std::unordered_map< name_t, ball_t * > *ball_name) |
| ~pocket_t (void) | |
| destructor | |
| bool | holds (ball_t *b) const |
| does this node hold the given ball? | |
| bool | holds (color_t c) const |
| does this node hold a ball of this color? | |
| ball_t * | first_ball (void) const |
| retrieve the first ball | |
| ball_t * | last_ball (void) const |
| retrieve the last ball | |
| ball_t * | ball (const color_t c) const |
| retrieve the first ball of the specified color. | |
| ball_t * | other (const ball_t *b) const |
| return a pointer to another ball | |
| string_t | yaml (string_t tab="") const |
| human/machine-readable info | |
| SEXP | structure (void) const |
| R list description. | |
Data Fields | |
| name_t | uniq |
| slate_t | slate |
Private Member Functions | |
| void | clean (void) |
Private Attributes | |
| ball_t * | _green_ball |
| name_t | _lineage |
Friends | |
| raw_t * | operator>> (const node_t &p, raw_t *o) |
| binary serialization of node_t | |
| raw_t * | operator>> (raw_t *o, node_t &p) |
| binary deserialization of node_t | |
Additional Inherited Members | |
Protected Member Functions inherited from pocket_t | |
| void | repair_holder (node_t *p) |
Encodes a genealogical node.
Each node has:
basic constructor for node class
Definition at line 66 of file node.h.

|
delete |
copy constructor

|
delete |
move constructor

|
inline |
|
inline |
size of binary serialization
Definition at line 38 of file node.h.


|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void node_t::lineage_incr | ( | int * | incr, |
| int * | sat, | ||
| int * | etype ) const |
lineage count, saturation, and event-type types are:
lineage count, saturation, and event-type. types are:
Definition at line 13 of file lineages.cc.


|
inline |
| string_t node_t::newick | ( | const slate_t & | tnow, |
| const slate_t & | tpar, | ||
| bool | showdeme, | ||
| bool | extended ) const |
Newick-format output.
Newick format with phylopomp extension Deme and node-type information is returned in a metadata wrapper.
Definition at line 30 of file newick.cc.


copy assignment operator

move assignment operator

|
inline |
| void node_t::reuniqify | ( | name_t | shift | ) |
| SEXP node_t::structure | ( | void | ) | const |
R list description.
Definition at line 54 of file structure.cc.


| string_t node_t::yaml | ( | string_t | tab = "" | ) | const |