13static const char*
colores[] = {
"green",
"blue",
"black"};
45 memcpy(o,buf,
sizeof(buf)); o +=
sizeof(buf);
52 memcpy(buf,o,
sizeof(buf)); o +=
sizeof(buf);
133 string_t
yaml (string_t tab =
"")
const;
static const name_t undeme
static const char * colorsymb[]
static const char * colores[]
node_t *& holder(void)
in whose pocket do I lie?
name_t & deme(void)
change deme
ball_t(ball_t &&)=delete
move constructor
node_t * owner(void) const
view owner of a green ball
name_t deme(void) const
view deme
static const size_t bytesize
size of binary serialization
node_t * holder(void) const
in whose pocket do I lie?
SEXP structure(void) const
R list description.
string_t newick(const slate_t &t, bool showdeme) const
bool is(color_t c) const
is a given ball of the given color?
ball_t(node_t *who=0, name_t u=0, color_t col=green, name_t d=undeme)
basic constructor for ball class
node_t *& owner(void)
change owner of a green ball
string_t color_name(void) const
human-readable colors
~ball_t(void)=default
destructor
string_t yaml(string_t tab="") const
human/machine-readable info
ball_t(const ball_t &)=delete
copy constructor
friend raw_t * operator>>(const ball_t &b, raw_t *o)
binary serialization
string_t color_symbol(void) const
machine-readable color symbols
ball_t & operator=(const ball_t &)=delete
copy assignment operator
node_t * child(void) const
a child is the owner of a green ball
Encodes a genealogical node.