|
phylopomp
Phylodynamics for POMPs
|
Balls function as pointers. More...
#include <ball.h>

Public Member Functions | |
| ball_t (node_t *who=0, name_t u=0, color_t col=green, name_t d=undeme) | |
| basic constructor for ball class | |
| ball_t (const ball_t &)=delete | |
| copy constructor | |
| ball_t (ball_t &&)=delete | |
| move constructor | |
| ball_t & | operator= (const ball_t &)=delete |
| copy assignment operator | |
| ball_t & | operator= (ball_t &&)=delete |
| move assignment operator | |
| ~ball_t (void)=default | |
| destructor | |
| name_t | deme (void) const |
| view deme | |
| name_t & | deme (void) |
| change deme | |
| node_t * | owner (void) const |
| view owner of a green ball | |
| node_t *& | owner (void) |
| change owner of a green ball | |
| node_t * | child (void) const |
| a child is the owner of a green ball | |
| node_t * | holder (void) const |
| in whose pocket do I lie? | |
| node_t *& | holder (void) |
| in whose pocket do I lie? | |
| bool | is (color_t c) const |
| is a given ball of the given color? | |
| std::string | color_name (void) const |
| human-readable colors | |
| std::string | color_symbol (void) const |
| machine-readable color symbols | |
| std::string | describe (void) const |
| human-readable info | |
| std::string | yaml (std::string tab="") const |
| machine-readable info | |
| SEXP | structure (void) const |
| R list description. | |
| std::string | newick (const slate_t &t) const |
| element of a newick representation | |
Data Fields | |
| name_t | uniq |
| color_t | color |
Static Public Attributes | |
| static const size_t | bytesize = 2*sizeof(name_t)+sizeof(color_t) |
| size of binary serialization | |
Private Attributes | |
| node_t * | _holder |
| node_t * | _owner |
| name_t | _deme |
Friends | |
| raw_t * | operator>> (const ball_t &b, raw_t *o) |
| binary serialization | |
| raw_t * | operator>> (raw_t *o, ball_t &b) |
| binary deserialization | |
Balls function as pointers.
Each ball has:
|
delete |
copy constructor

|
delete |
move constructor

|
default |
destructor
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
human-readable info
Definition at line 135 of file ball.h.

|
inline |
|
inline |
|
inline |
|
inline |
element of a newick representation
Definition at line 177 of file ball.h.


move assignment operator

copy assignment operator

|
inline |
|
inline |
|
inline |
R list description.
Definition at line 155 of file ball.h.

|
inline |
binary serialization
binary deserialization