A toolkit for working with phylogenetic data.
v0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Bipartition Class Reference

#include <genesis/tree/bipartition/bipartition.hpp>

Detailed Description

Definition at line 44 of file bipartition.hpp.

Public Member Functions

 Bipartition ()=default
 
 Bipartition (TreeLink const &link, utils::Bitvector const &leaf_nodes)
 
 Bipartition (Bipartition const &)=default
 
 Bipartition (Bipartition &&)=default
 
 ~Bipartition ()=default
 
utils::Bitvectorbitvector ()
 
bool empty () const
 
void invert ()
 
utils::Bitvector const & leaf_nodes () const
 
TreeLink const & link () const
 
Bipartitionoperator= (Bipartition const &)=default
 
Bipartitionoperator= (Bipartition &&)=default
 

Protected Attributes

utils::Bitvector leaf_nodes_
 
TreeLink const * link_ = nullptr
 

Constructor & Destructor Documentation

Bipartition ( )
default
Bipartition ( TreeLink const &  link,
utils::Bitvector const &  leaf_nodes 
)
inline

Definition at line 54 of file bipartition.hpp.

~Bipartition ( )
default
Bipartition ( Bipartition const &  )
default
Bipartition ( Bipartition &&  )
default

Member Function Documentation

utils::Bitvector& bitvector ( )
inline

Definition at line 76 of file bipartition.hpp.

bool empty ( ) const
inline

Definition at line 92 of file bipartition.hpp.

void invert ( )
inline

Definition at line 86 of file bipartition.hpp.

utils::Bitvector const& leaf_nodes ( ) const
inline

Definition at line 81 of file bipartition.hpp.

TreeLink const& link ( ) const
inline

Definition at line 71 of file bipartition.hpp.

Bipartition& operator= ( Bipartition const &  )
default
Bipartition& operator= ( Bipartition &&  )
default

Member Data Documentation

utils::Bitvector leaf_nodes_
protected

Definition at line 104 of file bipartition.hpp.

TreeLink const* link_ = nullptr
protected

Definition at line 103 of file bipartition.hpp.


The documentation for this class was generated from the following file: