|
| 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 | 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 |
| |
| slate_t | joining_branch_length (const std::unordered_map< name_t, bool > &) const |
| |
| void | cblv (std::vector< slate_t > &, std::vector< slate_t > &, std::unordered_map< name_t, bool > &, const std::unordered_map< name_t, std::vector< node_t * > > &, slate_t) 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.
|
| |
| 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.
|
| |
| string_t | yaml (string_t tab="") const |
| | human/machine-readable info
|
| |
| SEXP | structure (void) const |
| | R list description.
|
| |
Encodes a genealogical node.
Each node has:
- a unique name (uniq)
- a pocket containting two or more balls
- a "slate" with the time
- a lineage
- a pointer to its own green ball
Definition at line 23 of file node.h.