A library for working with phylogenetic and population genetic data.
v0.32.0
Bipartition Class Reference

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

Detailed Description

Definition at line 47 of file bipartition.hpp.

Public Member Functions

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

Protected Attributes

utils::Bitvector leaf_nodes_
 
TreeLink const * link_ = nullptr
 

Constructor & Destructor Documentation

◆ Bipartition() [1/4]

Bipartition ( )
default

◆ Bipartition() [2/4]

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

Definition at line 57 of file bipartition.hpp.

◆ ~Bipartition()

~Bipartition ( )
default

◆ Bipartition() [3/4]

Bipartition ( Bipartition const &  )
default

◆ Bipartition() [4/4]

Bipartition ( Bipartition &&  )
default

Member Function Documentation

◆ bitvector()

utils::Bitvector& bitvector ( )
inline

Definition at line 87 of file bipartition.hpp.

◆ empty()

bool empty ( ) const
inline

Definition at line 103 of file bipartition.hpp.

◆ invert()

void invert ( )
inline

Definition at line 97 of file bipartition.hpp.

◆ leaf_nodes()

utils::Bitvector const& leaf_nodes ( ) const
inline

Definition at line 92 of file bipartition.hpp.

◆ link()

TreeLink const& link ( ) const
inline

Definition at line 82 of file bipartition.hpp.

◆ operator=() [1/2]

Bipartition& operator= ( Bipartition &&  )
default

◆ operator=() [2/2]

Bipartition& operator= ( Bipartition const &  )
default

◆ subtree()

Subtree subtree ( ) const
inline

Definition at line 74 of file bipartition.hpp.

Member Data Documentation

◆ leaf_nodes_

utils::Bitvector leaf_nodes_
protected

Definition at line 115 of file bipartition.hpp.

◆ link_

TreeLink const* link_ = nullptr
protected

Definition at line 114 of file bipartition.hpp.


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