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 More... | |
ball_t (const ball_t &)=delete | |
copy constructor More... | |
ball_t (ball_t &&)=delete | |
move constructor More... | |
ball_t & | operator= (const ball_t &)=delete |
copy assignment operator More... | |
ball_t & | operator= (ball_t &&)=delete |
move assignment operator More... | |
~ball_t (void)=default | |
destructor More... | |
name_t | deme (void) const |
view deme More... | |
name_t & | deme (void) |
change deme More... | |
node_t * | owner (void) const |
view owner of a green ball More... | |
node_t *& | owner (void) |
change owner of a green ball More... | |
node_t * | child (void) const |
a child is the owner of a green ball More... | |
node_t * | holder (void) const |
in whose pocket do I lie? More... | |
node_t *& | holder (void) |
in whose pocket do I lie? More... | |
bool | is (color_t c) const |
is a given ball of the given color? More... | |
std::string | color_name (void) const |
human-readable colors More... | |
std::string | color_symbol (void) const |
machine-readable color symbols More... | |
std::string | describe (void) const |
human-readable info More... | |
std::string | yaml (std::string tab="") const |
machine-readable info More... | |
SEXP | structure (void) const |
R list description. More... | |
std::string | newick (const slate_t &t) const |
element of a newick representation More... | |
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 More... | |
Private Attributes | |
node_t * | _holder |
node_t * | _owner |
name_t | _deme |
Friends | |
raw_t * | operator>> (const ball_t &b, raw_t *o) |
binary serialization More... | |
raw_t * | operator>> (raw_t *o, ball_t &b) |
binary deserialization More... | |
Balls function as pointers.
Each ball has:
|
delete |
copy constructor
|
delete |
move constructor
|
default |
destructor
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
element of a newick representation
Definition at line 177 of file ball.h.
|
inline |
|
inline |
|
inline |
R list description.
Definition at line 155 of file ball.h.
|
inline |
binary serialization
binary deserialization